From 4c5e881f765be86bb1da5ce4d3fcc86effc5fdc7 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Mon, 30 Jun 2008 20:25:46 +0000 Subject: [PATCH] Use 64-bit counters for the memory usage, to avoid easy overflows. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2723 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- src/vserver-stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vserver-stat.c b/src/vserver-stat.c index 9a9e7ee..9f03871 100644 --- a/src/vserver-stat.c +++ b/src/vserver-stat.c @@ -67,9 +67,9 @@ static unsigned long pagesize=0x42; struct XidData { xid_t xid; - int process_count; - int VmSize_total; - int VmRSS_total; + unsigned int process_count; + uint64_t VmSize_total; + uint64_t VmRSS_total; uint64_t start_time_oldest; uint64_t stime_total, utime_total; -- 1.8.1.5