mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-03 01:10:17 +01:00
Fixed a bug where gap filler overrode existing values
This commit is contained in:
parent
6fe5451a83
commit
d2581df3f6
@ -62,7 +62,7 @@ public class MutatorFunctions {
|
|||||||
private static void addMissing(long from, long to, NavigableMap<Long, Integer> points, long accuracy, Integer replacement) {
|
private static void addMissing(long from, long to, NavigableMap<Long, Integer> points, long accuracy, Integer replacement) {
|
||||||
long iterate = from;
|
long iterate = from;
|
||||||
while (iterate < to) {
|
while (iterate < to) {
|
||||||
points.put(iterate, replacement);
|
points.putIfAbsent(iterate, replacement);
|
||||||
iterate += accuracy;
|
iterate += accuracy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user