mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-08 03:39:42 +01:00
Fix math again for player retention
This commit is contained in:
parent
97ff014f17
commit
667dbe471f
@ -423,7 +423,7 @@ public class ActivityIndexQueries {
|
|||||||
statement.setString(3, serverUUID.toString());
|
statement.setString(3, serverUUID.toString());
|
||||||
|
|
||||||
// Have played in the last half of the time frame
|
// Have played in the last half of the time frame
|
||||||
long half = before + (before - after) / 2;
|
long half = before - (before - after) / 2;
|
||||||
statement.setLong(4, half);
|
statement.setLong(4, half);
|
||||||
statement.setLong(5, before);
|
statement.setLong(5, before);
|
||||||
statement.setString(6, serverUUID.toString());
|
statement.setString(6, serverUUID.toString());
|
||||||
@ -464,7 +464,7 @@ public class ActivityIndexQueries {
|
|||||||
statement.setString(3, serverUUID.toString());
|
statement.setString(3, serverUUID.toString());
|
||||||
|
|
||||||
// Have played in the last half of the time frame
|
// Have played in the last half of the time frame
|
||||||
long half = before + (before - after) / 2;
|
long half = before - (before - after) / 2;
|
||||||
statement.setLong(4, half);
|
statement.setLong(4, half);
|
||||||
statement.setLong(5, before);
|
statement.setLong(5, before);
|
||||||
statement.setString(6, serverUUID.toString());
|
statement.setString(6, serverUUID.toString());
|
||||||
|
@ -405,7 +405,7 @@ public class NetworkActivityIndexQueries {
|
|||||||
statement.setLong(2, after);
|
statement.setLong(2, after);
|
||||||
|
|
||||||
// Have played in the last half of the time frame
|
// Have played in the last half of the time frame
|
||||||
long half = before + (before - after) / 2;
|
long half = before - (before - after) / 2;
|
||||||
statement.setLong(3, half);
|
statement.setLong(3, half);
|
||||||
statement.setLong(4, before);
|
statement.setLong(4, before);
|
||||||
setSelectActivityIndexSQLParameters(statement, 5, threshold, before);
|
setSelectActivityIndexSQLParameters(statement, 5, threshold, before);
|
||||||
@ -442,7 +442,7 @@ public class NetworkActivityIndexQueries {
|
|||||||
statement.setLong(2, after);
|
statement.setLong(2, after);
|
||||||
|
|
||||||
// Have played in the last half of the time frame
|
// Have played in the last half of the time frame
|
||||||
long half = before + (before - after) / 2;
|
long half = before - (before - after) / 2;
|
||||||
statement.setLong(3, half);
|
statement.setLong(3, half);
|
||||||
statement.setLong(4, before);
|
statement.setLong(4, before);
|
||||||
setSelectActivityIndexSQLParameters(statement, 5, threshold, before);
|
setSelectActivityIndexSQLParameters(statement, 5, threshold, before);
|
||||||
|
@ -364,7 +364,7 @@ public class PlayerCountQueries {
|
|||||||
statement.setString(3, serverUUID.toString());
|
statement.setString(3, serverUUID.toString());
|
||||||
|
|
||||||
// Have played in the last half of the time frame
|
// Have played in the last half of the time frame
|
||||||
long half = before + (before - after) / 2;
|
long half = before - (before - after) / 2;
|
||||||
statement.setLong(4, half);
|
statement.setLong(4, half);
|
||||||
statement.setLong(5, before);
|
statement.setLong(5, before);
|
||||||
statement.setString(6, serverUUID.toString());
|
statement.setString(6, serverUUID.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user