From: Enrico Scholz Date: Thu, 19 May 2005 18:02:21 +0000 (+0000) Subject: fixed calculation of hours (%24 instead of %60); reported in X-Git-Tag: version_0_30_210~187 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27a26bbc644d243a8c4d8afb3733cbfaac243b6f;p=util-vserver.git fixed calculation of hours (%24 instead of %60); reported in 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 --- diff --git a/util-vserver/src/vserver-stat.c b/util-vserver/src/vserver-stat.c index 0fc2a80..7bbc494 100644 --- a/util-vserver/src/vserver-stat.c +++ b/util-vserver/src/vserver-stat.c @@ -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) {