1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 12:26:48 +01:00

Do not consider awake sleep for sleep time

This commit is contained in:
José Rebelo 2024-10-05 18:02:13 +01:00
parent 7de97a49b0
commit b2c88b47d5

View File

@ -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) {