Introduction
Introduction Statistics Contact Development Disclaimer Help
ram: Consistency with line breaks - slstatus - status monitor
git clone git://git.suckless.org/slstatus
Log
Files
Refs
README
LICENSE
---
commit dd7f1896aa9883f33b4d28cd192e8088db0cab5a
parent e213b48122f1f8e8d837053324d9c891a67a38d2
Author: Aaron Marcher <[email protected]>
Date: Sun, 8 Jul 2018 17:45:32 +0200
ram: Consistency with line breaks
Diffstat:
M components/ram.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git 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;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.