From 2ab8e45eb85894f7a861849be625ee97be078da1 Mon Sep 17 00:00:00 2001 From: Rebecca Cran Date: Tue, 17 Aug 2010 09:51:08 +0000 Subject: [PATCH] Since top displays the uptime including seconds, there is no need to add 30 onto it, which may have been used for rounding purposes in other utilities. PR: bin/147934 Submitted by: Janne Snabb Approved by: rrs (mentor) MFC after: 2 weeks --- contrib/top/display.c | 1 - 1 file changed, 1 deletion(-) diff --git a/contrib/top/display.c b/contrib/top/display.c index 3fca57b5fdc7..94765302dfb2 100644 --- a/contrib/top/display.c +++ b/contrib/top/display.c @@ -1273,7 +1273,6 @@ time_t *tod; if (bt->tv_sec != -1) { uptime = *tod - bt->tv_sec; - uptime += 30; days = uptime / 86400; uptime %= 86400; hrs = uptime / 3600;