diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-04-11 09:27:32 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | abde16c130f30b96100b3cc332143acf7f309c96 (patch) | |
tree | 2afc5db1f22024cee6f048defe567960fa943588 /src/shared | |
parent | adeb587a08c5f314cb74ccd31128e8dece59a945 (diff) |
shared/sleep-config: rename misnamed function
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/sleep-config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index 28d19c59b..159003886 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -247,7 +247,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; @@ -430,6 +430,7 @@ int can_sleep(const char *verb) { return true; if (!enough_memory_for_hibernation()) + if (!enough_swap_for_hibernation()) return -ENOSPC; return true; |