same workaround for korean danar

This commit is contained in:
Milos Kozak 2017-05-16 17:58:18 +02:00
parent a362c77afe
commit 8d2e7a34ae

View file

@ -507,7 +507,7 @@ public class ExecutionService extends Service {
private double[] buildDanaRProfileRecord(NSProfile nsProfile) { private double[] buildDanaRProfileRecord(NSProfile nsProfile) {
double[] record = new double[24]; double[] record = new double[24];
for (Integer hour = 0; hour < 24; hour++) { for (Integer hour = 0; hour < 24; hour++) {
double value = nsProfile.getBasal(hour * 60 * 60); double value = Math.round(100d * nsProfile.getBasal(hour * 60 * 60))/100d + 0.00001;
if (Config.logDanaMessageDetail) if (Config.logDanaMessageDetail)
log.debug("NS basal value for " + hour + ":00 is " + value); log.debug("NS basal value for " + hour + ":00 is " + value);
record[hour] = value; record[hour] = value;