Fix too long number in "adj. req. rate: 1.2000000000000000002" 8b25b5b
This commit is contained in:
parent
8b25b5b351
commit
441030663e
|
@ -470,7 +470,7 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
|
||||||
var maxSafeBasal = tempBasalFunctions.getMaxSafeBasal(profile);
|
var maxSafeBasal = tempBasalFunctions.getMaxSafeBasal(profile);
|
||||||
|
|
||||||
if (rate > maxSafeBasal) {
|
if (rate > maxSafeBasal) {
|
||||||
rT.reason += "adj. req. rate: "+rate+" to maxSafeBasal: "+maxSafeBasal+", ";
|
rT.reason += "adj. req. rate: "+round(rate, 2)+" to maxSafeBasal: "+maxSafeBasal+", ";
|
||||||
rate = round_basal(maxSafeBasal, profile);
|
rate = round_basal(maxSafeBasal, profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue