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;
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{" +