fix TBR U->% rounding
This commit is contained in:
parent
04bb3c3558
commit
ee3f63c327
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ public class TemporaryBasal implements Interval, DbObjectBase {
|
|||
if (isFakeExtended) {
|
||||
return (int) ((profile.getBasal(time) + netExtendedRate) / profile.getBasal(time)) * 100;
|
||||
} else if (isAbsolute) {
|
||||
return (int) (absoluteRate / profile.getBasal(time)) * 100;
|
||||
return (int) (absoluteRate / profile.getBasal(time) * 100);
|
||||
} else {
|
||||
return percentRate;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue