From 27a26bbc644d243a8c4d8afb3733cbfaac243b6f Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 19 May 2005 18:02:21 +0000 Subject: [PATCH] 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 --- util-vserver/src/vserver-stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 1.8.1.5