mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-31 21:48:32 +01:00
Reversed regular->inactive metric dates
The dates were calculating the metric wrong way around, - the first index was for current time - Regulars - the second index was for 30 days ago - Inactive So it was calculating inactive->regular instead Affects issues: - Fixed #1775
This commit is contained in:
parent
600d64999a
commit
4e3c901e59
@ -223,8 +223,8 @@ public class ActivityIndexQueries {
|
||||
return new QueryStatement<Integer>(selectActivePlayerCount) {
|
||||
@Override
|
||||
public void prepare(PreparedStatement statement) throws SQLException {
|
||||
setSelectActivityIndexSQLParameters(statement, 1, threshold, serverUUID, end);
|
||||
setSelectActivityIndexSQLParameters(statement, 12, threshold, serverUUID, start);
|
||||
setSelectActivityIndexSQLParameters(statement, 1, threshold, serverUUID, start);
|
||||
setSelectActivityIndexSQLParameters(statement, 12, threshold, serverUUID, end);
|
||||
statement.setDouble(23, ActivityIndex.REGULAR);
|
||||
statement.setDouble(24, 5.1);
|
||||
statement.setDouble(25, -0.1);
|
||||
|
Loading…
Reference in New Issue
Block a user