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:
Risto Lahtela 2021-03-10 09:57:25 +02:00
parent 600d64999a
commit 4e3c901e59

View File

@ -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);