mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-06 07:21:21 +01:00
[#822] Flipped condition
- "Active Players might be running out of things to do" was flipped due to the condition being flipped.
This commit is contained in:
parent
b1746c5dab
commit
1669e5ca56
@ -157,13 +157,17 @@ public abstract class AbstractHealthInfo {
|
|||||||
long avgLastTwoWeeks = totalLastTwoWeeks / (long) activeCount;
|
long avgLastTwoWeeks = totalLastTwoWeeks / (long) activeCount;
|
||||||
String avgLastTwoWeeksString = timeAmountFormatter.apply(avgLastTwoWeeks);
|
String avgLastTwoWeeksString = timeAmountFormatter.apply(avgLastTwoWeeks);
|
||||||
String avgFourToTwoWeeksString = timeAmountFormatter.apply(avgFourToTwoWeeks);
|
String avgFourToTwoWeeksString = timeAmountFormatter.apply(avgFourToTwoWeeks);
|
||||||
if (avgFourToTwoWeeks >= avgLastTwoWeeks) {
|
|
||||||
|
// Played more or equal amount than 2 weeks ago
|
||||||
|
if (avgLastTwoWeeks >= avgFourToTwoWeeks) {
|
||||||
addNote(Icons.GREEN_THUMB + locale.getString(HealthInfoLang.ACTIVE_PLAY_COMPARISON_INCREASE,
|
addNote(Icons.GREEN_THUMB + locale.getString(HealthInfoLang.ACTIVE_PLAY_COMPARISON_INCREASE,
|
||||||
avgLastTwoWeeksString, avgFourToTwoWeeksString));
|
avgLastTwoWeeksString, avgFourToTwoWeeksString));
|
||||||
|
// Played more than 2 hours less, than 2 weeks ago
|
||||||
} else if (avgFourToTwoWeeks - avgLastTwoWeeks > TimeUnit.HOURS.toMillis(2L)) {
|
} else if (avgFourToTwoWeeks - avgLastTwoWeeks > TimeUnit.HOURS.toMillis(2L)) {
|
||||||
addNote(Icons.RED_WARN + locale.getString(HealthInfoLang.ACTIVE_PLAY_COMPARISON_DECREASE,
|
addNote(Icons.RED_WARN + locale.getString(HealthInfoLang.ACTIVE_PLAY_COMPARISON_DECREASE,
|
||||||
avgLastTwoWeeksString, avgFourToTwoWeeksString));
|
avgLastTwoWeeksString, avgFourToTwoWeeksString));
|
||||||
serverHealth -= 5;
|
serverHealth -= 5;
|
||||||
|
// Played less than two weeks ago
|
||||||
} else {
|
} else {
|
||||||
addNote(Icons.YELLOW_FLAG + locale.getString(HealthInfoLang.ACTIVE_PLAY_COMPARISON_DECREASE,
|
addNote(Icons.YELLOW_FLAG + locale.getString(HealthInfoLang.ACTIVE_PLAY_COMPARISON_DECREASE,
|
||||||
avgLastTwoWeeksString, avgFourToTwoWeeksString));
|
avgLastTwoWeeksString, avgFourToTwoWeeksString));
|
||||||
|
Loading…
Reference in New Issue
Block a user