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;
|
||||
|
||||
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{" +
|
||||
|
|
Loading…
Reference in a new issue