delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/12/06:49:45

X-Spam-Check-By: sourceware.org
Date: Mon, 12 Dec 2005 12:49:33 +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: <20051212114933.GG17517@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <439B555A DOT 80803 AT ineedhosting DOT net> <Pine DOT LNX DOT 4 DOT 58 DOT 0512101742440 DOT 16549 AT dahlia DOT vgersoft DOT com>
Mime-Version: 1.0
In-Reply-To: <Pine.LNX.4.58.0512101742440.16549@dahlia.vgersoft.com>
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 17:50, Steve Thompson wrote:
>  It also appears to
> be wrong for uniprocessor hosts that have been up for more than 49.7 days
> because of the 32-bit value returned by GetTickCount(); my own system
> reported an uptime of 16 days after being up for 66 days.

It's using GetTickCount only if neither GetSystemTimes, nor
NtQuerySystemInformation is available, which is on Win9x.
NT systems shouldn't be affected by this.


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