[libgtop] freebsd: Fix get_mem() on 64-bit systems (bgo#630128)
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] freebsd: Fix get_mem() on 64-bit systems (bgo#630128)
- Date: Sat, 2 Oct 2010 23:21:53 +0000 (UTC)
commit f787bfa0c7d69665974c1322ab47c8767e87e705
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Sun Oct 3 10:17:58 2010 +1100
freebsd: Fix get_mem() on 64-bit systems (bgo#630128)
sysdeps/freebsd/mem.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sysdeps/freebsd/mem.c b/sysdeps/freebsd/mem.c
index 71a4a60..43a665c 100644
--- a/sysdeps/freebsd/mem.c
+++ b/sysdeps/freebsd/mem.c
@@ -79,10 +79,10 @@ glibtop_get_mem_s (glibtop *server, glibtop_mem *buf)
buffers = 0;
buf->total = memtotal;
- buf->used = (memused * pagesize);
+ buf->used = (memused * (gulong) pagesize);
buf->free = (buf->total - buf->used);
buf->shared = 0;
- buf->cached = (cached * pagesize);
+ buf->cached = (cached * (gulong) pagesize);
buf->buffer = buffers;
buf->user = buf->total - buf->free - buf->cached - buf->buffer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]