fix IOB calculation

This commit is contained in:
Milos Kozak 2023-08-03 13:38:48 +02:00
parent 1621871ca4
commit 1500381e14

View file

@ -211,7 +211,7 @@ class IobCobCalculatorPlugin @Inject constructor(
val basalIobWithZeroTemp = basalIob.copy()
val t = TemporaryBasal(
timestamp = now + 60 * 1000L,
duration = 240,
duration = 240 * 60 * 1000L,
rate = 0.0,
isAbsolute = true,
type = TemporaryBasal.Type.NORMAL
@ -239,7 +239,7 @@ class IobCobCalculatorPlugin @Inject constructor(
val basalIobWithZeroTemp = basalIob.copy()
val t = TemporaryBasal(
timestamp = now + 60 * 1000L,
duration = 240,
duration = 240 * 60 * 1000L,
rate = 0.0,
isAbsolute = true,
type = TemporaryBasal.Type.NORMAL