diff options
author | Aaron Marcher <me@drkhsh.at> | 2018-07-08 17:42:58 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-07-08 17:42:58 +0200 |
commit | 7234e675833f26442d4a3a2afaa9dccb682e3b0a (patch) | |
tree | 75f6d95fc7bbe3464c5f47574ab36a7514d0382e /components/ram.c | |
parent | 0320d850972eb48e05451f41bcc1ecd142b5637b (diff) |
Consistency with 80 char limit and breaks
Diffstat (limited to 'components/ram.c')
-rw-r--r-- | components/ram.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/ram.c b/components/ram.c index d2fbce9..1d5b1da 100644 --- a/components/ram.c +++ b/components/ram.c @@ -40,8 +40,8 @@ return NULL; } - return bprintf("%d", 100 * ((total - free) - - (buffers + cached)) / total); + return bprintf("%d", 100 * ((total - free) - (buffers + cached)) + / total); } const char * @@ -49,8 +49,8 @@ { uintmax_t total; - if (pscanf("/proc/meminfo", "MemTotal: %ju kB\n", - &total) != 1) { + if (pscanf("/proc/meminfo", "MemTotal: %ju kB\n", &total) + != 1) { return NULL; } |