use uint64_t for the uptime counter to handle medium+large uptimes
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 21 Apr 2004 09:43:41 +0000 (09:43 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 21 Apr 2004 09:43:41 +0000 (09:43 +0000)
(>49 days) correctly

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1487 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/vserver-stat.c

index 60810e1..2c85ea8 100644 (file)
@@ -133,7 +133,7 @@ getUptime()
   char         buffer[64];
   char *       errptr;
   size_t       len;
-  time_t       secs;
+  uint64_t     secs;
   uint32_t     msecs=0;
 
     // open the /proc/uptime file