public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Owen Rees <owen.rees@hp.com>
To: cygwin@cygwin.com
Subject: Re: Finding either boot time or login time
Date: Fri, 30 Jan 2009 22:45:00 -0000	[thread overview]
Message-ID: <8D4EE6ADBA96AD4B76C7F09E@rrees2.emea.hpqcorp.net> (raw)
In-Reply-To: <183c528b0901300758i4c633f65t7162f96f246d1d17@mail.gmail.com>

--On 30 January 2009 10:58 -0500 Brian Mathis wrote:

> I've noticed that, on Vista, "net stats srv" always seems to return
> 1980, while systeminfo returns the correct result.

On this Vista system right now "net stats srv" says:

  Statistics since 27/01/2009 16:04:50

systeminfo says

  System Boot Time:          29/01/2009, 12:13:49

There is an event in the event log:

Log Name:      System
Source:        EventLog
Date:          27/01/2009 16:04:44
Event ID:      6013
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:
Description:
The system uptime is 39 seconds.

There is nothing in the event log near 29/01/2009, 12:13:49 that suggests a 
reboot happened then, and I don't think I rebooted then and the latest 
USER32/1074 "Shutdown Type: restart" was at 27/01/2009 14:44:39.

A later event says:

Date:          30/01/2009 12:00:59
The system uptime is 85630 seconds.

Which is consistent with the 29/01/2009, 12:13:49 time and so almost 
certainly wrong.

This is a dual core laptop that has been in hibernation since booting so 
make what you will of what the numbers say. If Windows does not have a way 
to report last boot time accurately then there is not really anything 
cygwin can do to get around that.

-- 
Owen Rees; speaking personally, and not on behalf of HP.
========================================================
Hewlett-Packard Limited.   Registered No: 690597 England
Registered Office:  Cain Road, Bracknell, Berks RG12 1HN


--
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/

  reply	other threads:[~2009-01-30 17:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-30 15:33 Ronald Fischer
2009-01-30 15:58 ` Eric Blake
2009-01-30 15:58   ` Ronald Fischer
2009-01-30 16:43     ` Fabian Cenedese
2009-01-30 17:02       ` Mark J. Reed
2009-02-02 14:11         ` Ronald Fischer
2009-02-02 14:34           ` Jerry D. Hedden
2009-02-02 20:28             ` Mark J. Reed
2009-01-30 22:08     ` Brian Mathis
2009-01-30 22:45       ` Owen Rees [this message]
2009-02-02 16:54 Cooper, Karl (US SSA)
2009-02-02 17:37 ` Owen Rees

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8D4EE6ADBA96AD4B76C7F09E@rrees2.emea.hpqcorp.net \
    --to=owen.rees@hp.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).