slstatus

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.beauhilton.com/slstatus.git
Log | Files | Refs | README | LICENSE

commit bae576cd221ef8f30195d6927cf935a797ac5a02
parent ec5c35ec9f23254f09e734d0c1880559774dfa52
Author: Aaron Marcher <me@drkhsh.at>
Date:   Mon, 21 May 2018 00:29:54 +0200

Increase readability for load_uvmexp return

Diffstat:
Mcomponents/ram.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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 *