mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Take frequency into account when computing score for numerical habits
This commit is contained in:
@@ -296,7 +296,7 @@ public abstract class ScoreList implements Iterable<Score>
|
||||
rollingSum -= checkmarkValues[offset + denominator];
|
||||
}
|
||||
double percentageCompleted = Math.min(1, rollingSum / 1000 / habit.getTargetValue());
|
||||
previousValue = Score.compute(1.0, previousValue, percentageCompleted);
|
||||
previousValue = Score.compute(freq, previousValue, percentageCompleted);
|
||||
}
|
||||
else if (checkmarkValues[offset] != Checkmark.SKIP)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user