mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-09 03:37:03 +01:00
Do not consider awake sleep for sleep time
This commit is contained in:
parent
7de97a49b0
commit
b2c88b47d5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user