Fix calculation in adjustToReferenceTime()

This commit is contained in:
jbr7rr 2022-12-28 12:58:36 +01:00
parent 2559b7cce7
commit e0c8039d31

View file

@ -153,6 +153,7 @@ class AutosensDataStoreObject : AutosensDataStore {
var diff = abs(someTime - referenceTime)
diff %= T.mins(5).msecs()
if (diff > T.mins(2).plus(T.secs(30)).msecs()) diff -= T.mins(5).msecs()
diff = abs(diff)
return someTime + diff
}