all repos — slstatus @ 72f5a0d69ad43e7329064f415b4f8df3c1c2ccec

my build of slstatus (tools.suckless.org/slstatus/)

swap: OS split
Quentin Rameau quinq@fifth.space
Mon, 30 Apr 2018 15:14:36 +0200
commit

72f5a0d69ad43e7329064f415b4f8df3c1c2ccec

parent

259e106b4fbdca3df8dd660f70edf0585f14b6f6

3 files changed, 2 insertions(+), 4 deletions(-)

jump to
M MakefileMakefile

@@ -20,7 +20,7 @@ components/load_avg\

components/num_files\ components/$(OS)/ram \ components/run_command\ - components/swap\ + components/$(OS)/swap \ components/temperature\ components/uptime\ components/user\
M components/swap.ccomponents/Linux/swap.c

@@ -1,10 +1,9 @@

/* See LICENSE file for copyright and license details. */ -#if defined(__linux__) #include <errno.h> #include <stdio.h> #include <string.h> -#include "../util.h" +#include "../../util.h" const char * swap_free(void)

@@ -135,4 +134,3 @@ sscanf(match, "SwapFree: %ld kB\n", &free);

return bprintf("%f", (float)(total - free - cached) / 1024 / 1024); } -#endif