Use 64-bit counters for the memory usage, to avoid easy overflows.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Mon, 30 Jun 2008 20:25:46 +0000 (20:25 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Mon, 30 Jun 2008 20:25:46 +0000 (20:25 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2723 94cd875c-1c1d-0410-91d2-eb244daf1a30

src/vserver-stat.c

index 9a9e7ee..9f03871 100644 (file)
@@ -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;