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.
This commit is contained in:
Jasper Lievisse Adriaanse
2011-08-30 17:52:40 +02:00
parent 1baa3fcc6a
commit 08ac661b19

View File

@@ -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;