fix timeOnPod

This commit is contained in:
Andrei Vereha 2021-06-24 23:08:32 +02:00
parent 22d78f356b
commit 19ff58ac95

View file

@ -189,7 +189,7 @@ class OmnipodDashPodStateManagerImpl @Inject constructor(
if ((activationTime != null) && (minutesSinceActivation != null)) {
return DateTime(activationTime)
.plusMinutes(minutesSinceActivation.toInt())
.plus(Duration(podState.lastStatusResponseReceived, System.currentTimeMillis()))
.plus(Duration(podState.lastUpdatedSystem, System.currentTimeMillis()))
}
return null
}