Fix calculation in adjustToReferenceTime()
This commit is contained in:
parent
2559b7cce7
commit
e0c8039d31
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue