chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adeb587
)
shared/sleep-config: rename misnamed function
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 11 Apr 2018 07:27:32 +0000
(09:27 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000
(16:47 +0200)
src/shared/sleep-config.c
patch
|
blob
|
history
diff --git
a/src/shared/sleep-config.c
b/src/shared/sleep-config.c
index 28d19c59b70e201cd754aac08dcc672e081c6c8c..1590038866e4442f6fbef679ee2db8e261b1a1dc 100644
(file)
--- 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;