diff options
author | Daniel Mack <github@zonque.org> | 2015-09-30 16:35:49 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-09-30 16:35:49 +0200 |
commit | a19c7a4a4b773e25671a5fa874e7c421685d1bde (patch) | |
tree | 3b7e20eb79359b4f3579870beb279df35ae207cd /src/shared/sleep-config.c | |
parent | 6e8337580862037d0639961cb51ef82270c1a30f (diff) | |
parent | f2d28e80bc6260c90396e9fc798d559775dbde23 (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.c | 2 |
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; |