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) {
|
if (isFakeExtended) {
|
||||||
return (int) ((profile.getBasal(time) + netExtendedRate) / profile.getBasal(time)) * 100;
|
return (int) ((profile.getBasal(time) + netExtendedRate) / profile.getBasal(time)) * 100;
|
||||||
} else if (isAbsolute) {
|
} else if (isAbsolute) {
|
||||||
return (int) (absoluteRate / profile.getBasal(time)) * 100;
|
return (int) (absoluteRate / profile.getBasal(time) * 100);
|
||||||
} else {
|
} else {
|
||||||
return percentRate;
|
return percentRate;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue