[hackers] [slstatus] ram: Consistency with line breaks || Aaron Marcher
commit dd7f1896aa9883f33b4d28cd192e8088db0cab5a
Author: Aaron Marcher <me_AT_drkhsh.at>
AuthorDate: Sun Jul 8 17:45:32 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Sun Jul 8 17:45:32 2018 +0200
ram: Consistency with line breaks
diff --git a/components/ram.c b/components/ram.c
index 91311ac..48144e4 100644
--- a/components/ram.c
+++ b/components/ram.c
_AT_@ -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;
_AT_@ -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;
Received on Sun Jul 08 2018 - 17:45:57 CEST
This archive was generated by hypermail 2.3.0
: Sun Jul 08 2018 - 17:48:26 CEST