'uptime' command producing incorrect uptime

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Dec 12 13:05:00 GMT 2005


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@JACK ~
> $ uptime
> 22:03:00 up 98 days, 13:37,  1 user,  load average: 0.00, 0.00, 0.00
> 
> M2Ys4U@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/



More information about the Cygwin mailing list