summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/ram.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/ram.c b/components/ram.c
index 91311ac..48144e4 100644
--- a/components/ram.c
+++ b/components/ram.c
@@ -30,7 +30,8 @@
if (pscanf("/proc/meminfo",
"MemTotal: %ju kB\n"
"MemFree: %ju kB\n"
- "MemAvailable: %ju kB\nBuffers: %ju kB\n"
+ "MemAvailable: %ju kB\n"
+ "Buffers: %ju kB\n"
"Cached: %ju kB\n",
&total, &free, &buffers, &buffers, &cached) != 5) {
return NULL;
@@ -65,7 +66,8 @@
if (pscanf("/proc/meminfo",
"MemTotal: %ju kB\n"
"MemFree: %ju kB\n"
- "MemAvailable: %ju kB\nBuffers: %ju kB\n"
+ "MemAvailable: %ju kB\n"
+ "Buffers: %ju kB\n"
"Cached: %ju kB\n",
&total, &free, &buffers, &buffers, &cached) != 5) {
return NULL;