Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Sep 2010 14:29:31 +0000 (UTC)
From:      Bruce Cran <brucec@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r212471 - stable/7/contrib/top
Message-ID:  <201009111429.o8BETVJb005096@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brucec
Date: Sat Sep 11 14:29:31 2010
New Revision: 212471
URL: http://svn.freebsd.org/changeset/base/212471

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/7/contrib/top/display.c
Directory Properties:
  stable/7/contrib/top/   (props changed)

Modified: stable/7/contrib/top/display.c
==============================================================================
--- stable/7/contrib/top/display.c	Sat Sep 11 14:26:18 2010	(r212470)
+++ stable/7/contrib/top/display.c	Sat Sep 11 14:29:31 2010	(r212471)
@@ -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?201009111429.o8BETVJb005096>