summaryrefslogtreecommitdiff
path: root/src/shared/sleep-config.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-09-30 16:35:49 +0200
committerDaniel Mack <github@zonque.org>2015-09-30 16:35:49 +0200
commita19c7a4a4b773e25671a5fa874e7c421685d1bde (patch)
tree3b7e20eb79359b4f3579870beb279df35ae207cd /src/shared/sleep-config.c
parent6e8337580862037d0639961cb51ef82270c1a30f (diff)
parentf2d28e80bc6260c90396e9fc798d559775dbde23 (diff)
Merge pull request #1415 from aakoskin/bootchart-v2
[v2] bootchart: don't fail if "model name" is missing from cpuinfo
Diffstat (limited to 'src/shared/sleep-config.c')
-rw-r--r--src/shared/sleep-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c
index 1064fd5cbd..3dedbd1f62 100644
--- a/src/shared/sleep-config.c
+++ b/src/shared/sleep-config.c
@@ -226,7 +226,7 @@ static bool enough_memory_for_hibernation(void) {
if (r < 0)
return false;
- r = get_status_field("/proc/meminfo", "\nActive(anon):", &active);
+ r = get_proc_field("/proc/meminfo", "Active(anon)", WHITESPACE, &active);
if (r < 0) {
log_error_errno(r, "Failed to retrieve Active(anon) from /proc/meminfo: %m");
return false;