diff options
author | Quentin Rameau <quinq@fifth.space> | 2018-04-30 15:14:36 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-04-30 15:41:52 +0200 |
commit | 72f5a0d69ad43e7329064f415b4f8df3c1c2ccec (patch) | |
tree | 75e419c8b00cf5adfcc8a269b96a25607e6719ac /components | |
parent | 259e106b4fbdca3df8dd660f70edf0585f14b6f6 (diff) |
swap: OS split
Diffstat (limited to 'components')
-rw-r--r-- | components/Linux/swap.c (renamed from components/swap.c) | 4 | ||||
-rw-r--r-- | components/OpenBSD/swap.c | 0 |
2 files changed, 1 insertions, 3 deletions
diff --git a/components/swap.c b/components/Linux/swap.c index f3bbeb2..bce9d5a 100644 --- a/components/swap.c +++ b/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 @@ swap_used(void) return bprintf("%f", (float)(total - free - cached) / 1024 / 1024); } -#endif diff --git a/components/OpenBSD/swap.c b/components/OpenBSD/swap.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/components/OpenBSD/swap.c |