swap: OS split
Quentin Rameau quinq@fifth.space
Mon, 30 Apr 2018 15:14:36 +0200
3 files changed,
2 insertions(+),
4 deletions(-)
M
components/swap.c
→
components/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