From: Daniel Hokka Zakrisson Date: Mon, 30 Jun 2008 20:25:46 +0000 (+0000) Subject: Use 64-bit counters for the memory usage, to avoid easy overflows. X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c5e881f765be86bb1da5ce4d3fcc86effc5fdc7;p=util-vserver.git 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 --- 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;