summaryrefslogtreecommitdiffstats
path: root/contrib/top
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2010-08-17 09:51:08 +0000
committerbrucec <brucec@FreeBSD.org>2010-08-17 09:51:08 +0000
commit11b836177831f53fb7680961070afa8ce0fd1242 (patch)
tree15823a83925cec56ad4ee63bc169b58b66338858 /contrib/top
parent2c928d3c3488d246a387cc7399707f0bd2e28626 (diff)
downloadFreeBSD-src-11b836177831f53fb7680961070afa8ce0fd1242.zip
FreeBSD-src-11b836177831f53fb7680961070afa8ce0fd1242.tar.gz
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 <snabb at epipe.com> Approved by: rrs (mentor) MFC after: 2 weeks
Diffstat (limited to 'contrib/top')
-rw-r--r--contrib/top/display.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/top/display.c b/contrib/top/display.c
index 3fca57b..9476530 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;
OpenPOWER on IntegriCloud