diff options
Diffstat (limited to 'src/sleep')
-rw-r--r-- | src/sleep/sleep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index 9018188cba..f7fee4a14c 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -274,7 +274,7 @@ static int custom_timer_suspend(const SleepConfig *sleep_config) { hibernate_timestamp = usec_add(now(CLOCK_BOOTTIME), sleep_config->hibernate_delay_usec); - while (battery_is_low() == 0) { + while (battery_is_discharging_and_low() == 0) { _cleanup_hashmap_free_ Hashmap *last_capacity = NULL, *current_capacity = NULL; _cleanup_close_ int tfd = -EBADF; struct itimerspec ts = {}; |