fix IOB calculation
This commit is contained in:
parent
1621871ca4
commit
1500381e14
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue