Commit 3914a003 by levphon

首页统计代码优化

1 parent a7f45b2e
...@@ -122,9 +122,7 @@ public class HomeController { ...@@ -122,9 +122,7 @@ public class HomeController {
*/ */
private boolean needRefreshTotal(String uniqueValue) { private boolean needRefreshTotal(String uniqueValue) {
Long lastRefreshTime = DEVICE_COUNT_LAST_REFRESH_TIME.get(uniqueValue); Long lastRefreshTime = DEVICE_COUNT_LAST_REFRESH_TIME.get(uniqueValue);
// return lastRefreshTime == null || (Math.abs(lastRefreshTime - System.currentTimeMillis()) >= 120000); return lastRefreshTime == null || (Math.abs(lastRefreshTime - System.currentTimeMillis()) >= 120000);
return true;
} }
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!