diff options
author | brucec <brucec@FreeBSD.org> | 2010-08-17 09:51:08 +0000 |
---|---|---|
committer | brucec <brucec@FreeBSD.org> | 2010-08-17 09:51:08 +0000 |
commit | 11b836177831f53fb7680961070afa8ce0fd1242 (patch) | |
tree | 15823a83925cec56ad4ee63bc169b58b66338858 /contrib/top | |
parent | 2c928d3c3488d246a387cc7399707f0bd2e28626 (diff) | |
download | FreeBSD-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.c | 1 |
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; |