make day 24 hours
This commit is contained in:
parent
0558e23eb4
commit
76cc6199c6
1 changed files with 2 additions and 2 deletions
|
@ -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{" +
|
||||||
|
|
Loading…
Reference in a new issue