Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Re: Uptime with Win32::GetTickCount()

by BioHazard (Pilgrim)
on Dec 02, 2002 at 13:52 UTC ( [id://216917]=note: print w/replies, xml ) Need Help??

in reply to Re: Uptime with Win32::GetTickCount()
in thread Uptime with Win32::GetTickCount()

Thanks a lot :)
Too bad for people with the "Uptime-Hobby"

I am quite lazy right now and just added the line
$uptime += 4294967295;
to my script. I know that I have to do this again in 49.7 days ;-)
But is there perhaps another method or another module which gets another system (uptime) variable? There must be a environment variable showing the correct uptime, because Windows tells me the correct value and a program called "tuxtime uptime client" ( tuxtime community ) as well.

reading between the lines is my real pleasure

Replies are listed 'Best First'.
Re: Re: Re: Uptime with Win32::GetTickCount()
by BrowserUk (Patriarch) on Dec 02, 2002 at 14:30 UTC

    A quick google turned up this perl script which uses various means to work around the 49 day roll-over under windows of various flavours.

    The relevant bit for win2k is the bit that locates the 6005 event in the event log.

    Okay you lot, get your wings on the left, halos on the right. It's one size fits all, and "No!", you can't have a different color.
    Pick up your cloud down the end and "Yes" if you get allocated a grey one they are a bit damp under foot, but someone has to get them.
    Get used to the wings fast cos its an 8 hour day...unless the Govenor calls for a cyclone or hurricane, in which case 16 hour shifts are mandatory.
    Just be grateful that you arrived just as the tornado season finished. Them buggers are real work.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://216917]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-17 05:00 GMT
Find Nodes?
    Voting Booth?

    No recent polls found