Add safety check for the "system time ran backwards" category.

This commit is contained in:
asofold 2013-01-13 19:56:43 +01:00
parent e2849c2979
commit ede74785d2

View File

@ -55,7 +55,7 @@ public class ActionFrequency {
// No update.
return;
}
else if (shift >= buckets.length){
else if (shift >= buckets.length || shift < 0){
// Clear (beyond range).
clear(now);
return;