diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DailyTotals.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DailyTotals.java index 4483251b2..38df1981a 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DailyTotals.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DailyTotals.java @@ -63,7 +63,8 @@ public class DailyTotals implements Serializable { } public long getSleep() { - return (long) Arrays.stream(sleep).asDoubleStream().sum(); + // exclude awake sleep + return sleep[0] + sleep[1] + sleep[2]; } public static DailyTotals getDailyTotalsForDevice(GBDevice device, Calendar day) {