Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Consistency with 80 char limit and breaks
[slstatus.git]
/
components
/
ram.c
diff --git
a/components/ram.c
b/components/ram.c
index
d2fbce9
..
1d5b1da
100644
(file)
--- a/
components/ram.c
+++ b/
components/ram.c
@@
-40,8
+40,8
@@
return NULL;
}
return NULL;
}
- return bprintf("%d", 100 * ((total - free) -
-
(buffers + cached))
/ total);
+ return bprintf("%d", 100 * ((total - free) -
(buffers + cached))
+ / total);
}
const char *
}
const char *
@@
-49,8
+49,8
@@
{
uintmax_t total;
{
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;
}
return NULL;
}