make day 24 hours

This commit is contained in:
AdrianLxM 2017-11-23 00:28:01 +01:00
parent 0558e23eb4
commit 76cc6199c6

View file

@ -20,7 +20,7 @@ public class BasalProfile {
BasalProfile that = (BasalProfile) o; 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) { if (Math.abs(hourlyRates[i] - that.hourlyRates[i]) > 0.01) {
return false; return false;
} }
@ -36,7 +36,7 @@ public class BasalProfile {
@Override @Override
public String toString() { public String toString() {
double total = 0d; double total = 0d;
for(int i = 0; i < 23; i++) { for(int i = 0; i <= 23; i++) {
total += hourlyRates[i]; total += hourlyRates[i];
} }
return "BasalProfile{" + return "BasalProfile{" +