mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-05 23:11:56 +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;
|
||||
String avgLastTwoWeeksString = timeAmountFormatter.apply(avgLastTwoWeeks);
|
||||
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,
|
||||
avgLastTwoWeeksString, avgFourToTwoWeeksString));
|
||||
// Played more than 2 hours less, than 2 weeks ago
|
||||
} else if (avgFourToTwoWeeks - avgLastTwoWeeks > TimeUnit.HOURS.toMillis(2L)) {
|
||||
addNote(Icons.RED_WARN + locale.getString(HealthInfoLang.ACTIVE_PLAY_COMPARISON_DECREASE,
|
||||
avgLastTwoWeeksString, avgFourToTwoWeeksString));
|
||||
serverHealth -= 5;
|
||||
// Played less than two weeks ago
|
||||
} else {
|
||||
addNote(Icons.YELLOW_FLAG + locale.getString(HealthInfoLang.ACTIVE_PLAY_COMPARISON_DECREASE,
|
||||
avgLastTwoWeeksString, avgFourToTwoWeeksString));
|
||||
|
Loading…
Reference in New Issue
Block a user