Fix too long number in "adj. req. rate: 1.2000000000000000002"

This commit is contained in:
Bluefox 2020-08-18 12:20:47 +02:00 committed by GitHub
parent 65c8cc9880
commit 8b25b5b351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1137,7 +1137,7 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
var maxSafeBasal = tempBasalFunctions.getMaxSafeBasal(profile);
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);
}