mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-08 17:37:34 +01:00
Fixed some insights (15 day comparisons)
This commit is contained in:
parent
ebbd2b50ff
commit
bb422df600
@ -201,7 +201,7 @@ public class OnlineActivityOverviewJSONParser implements ServerTabJSONParser<Map
|
|||||||
private Map<String, Object> createInsightsMap(UUID serverUUID) {
|
private Map<String, Object> createInsightsMap(UUID serverUUID) {
|
||||||
Database db = dbSystem.getDatabase();
|
Database db = dbSystem.getDatabase();
|
||||||
long now = System.currentTimeMillis();
|
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 monthAgo = now - TimeUnit.DAYS.toMillis(30L);
|
||||||
|
|
||||||
Map<String, Object> insights = new HashMap<>();
|
Map<String, Object> insights = new HashMap<>();
|
||||||
|
@ -128,7 +128,7 @@ public class PlayerBaseOverviewJSONParser implements ServerTabJSONParser<Map<Str
|
|||||||
private Map<String, Object> createInsightsMap(UUID serverUUID) {
|
private Map<String, Object> createInsightsMap(UUID serverUUID) {
|
||||||
Database db = dbSystem.getDatabase();
|
Database db = dbSystem.getDatabase();
|
||||||
long now = System.currentTimeMillis();
|
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 monthAgo = now - TimeUnit.DAYS.toMillis(30L);
|
||||||
Long playThreshold = config.get(TimeSettings.ACTIVE_PLAY_THRESHOLD);
|
Long playThreshold = config.get(TimeSettings.ACTIVE_PLAY_THRESHOLD);
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ public class NetworkPlayerBaseOverviewJSONParser implements NetworkTabJSONParser
|
|||||||
private Map<String, Object> createInsightsMap() {
|
private Map<String, Object> createInsightsMap() {
|
||||||
Database db = dbSystem.getDatabase();
|
Database db = dbSystem.getDatabase();
|
||||||
long now = System.currentTimeMillis();
|
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 monthAgo = now - TimeUnit.DAYS.toMillis(30L);
|
||||||
Long playThreshold = config.get(TimeSettings.ACTIVE_PLAY_THRESHOLD);
|
Long playThreshold = config.get(TimeSettings.ACTIVE_PLAY_THRESHOLD);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user