Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2010 09:51:08 +0000 (UTC)
From:      Bruce Cran <brucec@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r211419 - head/contrib/top
Message-ID:  <201008170951.o7H9p8Tc025989@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brucec
Date: Tue Aug 17 09:51:08 2010
New Revision: 211419
URL: http://svn.freebsd.org/changeset/base/211419

Log:
  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

Modified:
  head/contrib/top/display.c

Modified: head/contrib/top/display.c
==============================================================================
--- head/contrib/top/display.c	Tue Aug 17 09:42:50 2010	(r211418)
+++ head/contrib/top/display.c	Tue Aug 17 09:51:08 2010	(r211419)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008170951.o7H9p8Tc025989>