Xinqi Bao's Git
projects
/
slstatus.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
ec5c35e
)
Increase readability for load_uvmexp return
author
Aaron Marcher <
[email protected]
>
Sun, 20 May 2018 22:29:54 +0000
(
00:29
+0200)
committer
Aaron Marcher <
[email protected]
>
Sun, 20 May 2018 22:29:54 +0000
(
00:29
+0200)
components/ram.c
patch
|
blob
|
history
diff --git
a/components/ram.c
b/components/ram.c
index
f653156
..
cba22a1
100644
(file)
--- a/
components/ram.c
+++ b/
components/ram.c
@@
-84,7
+84,11
@@
size = sizeof(*uvmexp);
- return sysctl(uvmexp_mib, 2, uvmexp, &size, NULL, 0) >= 0 ? 1 : 0;
+ if (sysctl(uvmexp_mib, 2, uvmexp, &size, NULL, 0) >= 0) {
+ return 1;
+ }
+
+ return 0;
}
const char *