svn commit: r212470 - stable/8/contrib/top

Bruce Cran brucec at FreeBSD.org
Sat Sep 11 14:26:19 UTC 2010


Author: brucec
Date: Sat Sep 11 14:26:18 2010
New Revision: 212470
URL: http://svn.freebsd.org/changeset/base/212470

Log:
  MFC r211419:
  
  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)

Modified:
  stable/8/contrib/top/display.c
Directory Properties:
  stable/8/contrib/top/   (props changed)
  stable/8/contrib/top/install-sh   (props changed)

Modified: stable/8/contrib/top/display.c
==============================================================================
--- stable/8/contrib/top/display.c	Sat Sep 11 14:21:02 2010	(r212469)
+++ stable/8/contrib/top/display.c	Sat Sep 11 14:26:18 2010	(r212470)
@@ -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;


More information about the svn-src-all mailing list