shared/sleep-config: rename misnamed function

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-04-11 09:27:32 +02:00
parent b71c9758d1
commit 4638cd39af
1 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ int find_hibernate_location(char **device, char **type, size_t *size, size_t *us
return -ENOSYS;
}
static bool enough_memory_for_hibernation(void) {
static bool enough_swap_for_hibernation(void) {
_cleanup_free_ char *active = NULL;
unsigned long long act = 0;
size_t size = 0, used = 0;
@ -399,7 +399,7 @@ int can_sleep(const char *verb) {
if (streq(verb, "suspend"))
return true;
if (!enough_memory_for_hibernation())
if (!enough_swap_for_hibernation())
return -ENOSPC;
return true;