fixed calculation of hours (%24 instead of %60); reported in
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 19 May 2005 18:02:21 +0000 (18:02 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 19 May 2005 18:02:21 +0000 (18:02 +0000)
http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13048 by
Roman Barczynski

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

util-vserver/src/vserver-stat.c

index 0fc2a80..7bbc494 100644 (file)
@@ -359,7 +359,7 @@ shortenTime(char *buf, uint64_t t)
   t /= 60;
   mm = t%60;
   t /= 60;
-  hh = t%60;
+  hh = t%24;
   t /= 24;
 
   if (t>999*999) {