delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/12/08:05:26

X-Spam-Check-By: sourceware.org
Date: Mon, 12 Dec 2005 14:05:11 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 'uptime' command producing incorrect uptime
Message-ID: <20051212130511.GI17517@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <439B555A DOT 80803 AT ineedhosting DOT net>
Mime-Version: 1.0
In-Reply-To: <439B555A.80803@ineedhosting.net>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Dec 10 22:23, Jack wrote:
> Hi there,
> 
> It appears to me that the uptime command is not producing the correct 
> uptime and, in fact, is running twice as fast as it should be.
> 
> M2Ys4U AT JACK ~
> $ uptime
> 22:03:00 up 98 days, 13:37,  1 user,  load average: 0.00, 0.00, 0.00
> 
> M2Ys4U AT JACK ~
> $ uptime
> 22:13:00 up 98 days, 13:57,  1 user,  load average: 0.00, 0.00, 0.00
> 
> 10 mins have passed, but the uptime has increased by 20 mins!
> 
> I'm running a 3.0 GHz Intel P4 with hyperthreading - could the 
> hyperthreading be causing this?

As Steve already mentioned, the function didn't take multiprocessor
units into account.  I've checked in a patch into CVS, my testing
seem to indicate that it works now.  Give the next snapshot from
http://cygwin.com/snapshots/ a try.


Thanks for the report,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019