Fixed some insights (15 day comparisons)

This commit is contained in:
Rsl1122 2019-08-25 11:06:09 +03:00
parent ebbd2b50ff
commit bb422df600
3 changed files with 3 additions and 3 deletions

View File

@ -201,7 +201,7 @@ public class OnlineActivityOverviewJSONParser implements ServerTabJSONParser<Map
private Map<String, Object> createInsightsMap(UUID serverUUID) {
Database db = dbSystem.getDatabase();
long now = System.currentTimeMillis();
long halfMonthAgo = now - TimeUnit.DAYS.toMillis(30L);
long halfMonthAgo = now - TimeUnit.DAYS.toMillis(15L);
long monthAgo = now - TimeUnit.DAYS.toMillis(30L);
Map<String, Object> insights = new HashMap<>();

View File

@ -128,7 +128,7 @@ public class PlayerBaseOverviewJSONParser implements ServerTabJSONParser<Map<Str
private Map<String, Object> createInsightsMap(UUID serverUUID) {
Database db = dbSystem.getDatabase();
long now = System.currentTimeMillis();
long halfMonthAgo = now - TimeUnit.DAYS.toMillis(30L);
long halfMonthAgo = now - TimeUnit.DAYS.toMillis(15L);
long monthAgo = now - TimeUnit.DAYS.toMillis(30L);
Long playThreshold = config.get(TimeSettings.ACTIVE_PLAY_THRESHOLD);

View File

@ -128,7 +128,7 @@ public class NetworkPlayerBaseOverviewJSONParser implements NetworkTabJSONParser
private Map<String, Object> createInsightsMap() {
Database db = dbSystem.getDatabase();
long now = System.currentTimeMillis();
long halfMonthAgo = now - TimeUnit.DAYS.toMillis(30L);
long halfMonthAgo = now - TimeUnit.DAYS.toMillis(15L);
long monthAgo = now - TimeUnit.DAYS.toMillis(30L);
Long playThreshold = config.get(TimeSettings.ACTIVE_PLAY_THRESHOLD);