summaryrefslogtreecommitdiff
path: root/sysdeps/bsd
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@humppa.nl>2011-08-30 17:52:40 +0200
committerJasper Lievisse Adriaanse <jasper@humppa.nl>2011-08-30 17:52:40 +0200
commit08ac661b19587ec4a9cad11054440fadf4cd1d2a (patch)
treeb1bb69f16d14c8bd3e0343b30ba18dbf8d27b8fa /sysdeps/bsd
parent1baa3fcc6a5a06a6c56ce81860f4747ec4811268 (diff)
downloadlibgtop-08ac661b19587ec4a9cad11054440fadf4cd1d2a.tar.gz
Apply a fix from the OpenBSD backend by using the same type to store the
temporary amounts of swap, as is used in the struct that's eventually used to export it.
Diffstat (limited to 'sysdeps/bsd')
-rw-r--r--sysdeps/bsd/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/bsd/swap.c b/sysdeps/bsd/swap.c
index 388816ff..7ec8c1e1 100644
--- a/sysdeps/bsd/swap.c
+++ b/sysdeps/bsd/swap.c
@@ -153,7 +153,7 @@ glibtop_get_swap_p (glibtop *server, glibtop_swap *buf)
#endif
int nswap, i;
- int avail = 0, inuse = 0;
+ guint64 avail = 0, inuse = 0;
#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
struct uvmexp uvmexp;