[libgtop] Apply a fix from the OpenBSD backend by using the same type to store the temporary amounts of swap,
- From: Jasper Lievisse Adriaanse <jasperla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Apply a fix from the OpenBSD backend by using the same type to store the temporary amounts of swap,
- Date: Tue, 30 Aug 2011 16:09:39 +0000 (UTC)
commit 08ac661b19587ec4a9cad11054440fadf4cd1d2a
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date: Tue Aug 30 17:52:40 2011 +0200
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.
sysdeps/bsd/swap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sysdeps/bsd/swap.c b/sysdeps/bsd/swap.c
index 388816f..7ec8c1e 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]