From 76cc6199c6c65f15cc62a77f24a6c283c141cc30 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Thu, 23 Nov 2017 00:28:01 +0100 Subject: [PATCH] make day 24 hours --- ruffy-spi/src/main/java/de/jotomo/ruffy/spi/BasalProfile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/BasalProfile.java b/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/BasalProfile.java index 3d1e876e8c..67ac14d675 100644 --- a/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/BasalProfile.java +++ b/ruffy-spi/src/main/java/de/jotomo/ruffy/spi/BasalProfile.java @@ -20,7 +20,7 @@ public class BasalProfile { BasalProfile that = (BasalProfile) o; - for(int i = 0; i < 23; i++) { + for(int i = 0; i <= 23; i++) { if (Math.abs(hourlyRates[i] - that.hourlyRates[i]) > 0.01) { return false; } @@ -36,7 +36,7 @@ public class BasalProfile { @Override public String toString() { double total = 0d; - for(int i = 0; i < 23; i++) { + for(int i = 0; i <= 23; i++) { total += hourlyRates[i]; } return "BasalProfile{" +