Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by BioHazard (Pilgrim)
on Dec 02, 2002 at 13:52 UTC ( #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.

BioHazard
reading between the lines is my real pleasure


Comment on Re: Re: Uptime with Win32::GetTickCount()
Download Code
Re: Re: Re: Uptime with Win32::GetTickCount()
by BrowserUk (Pope) 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2014-09-21 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (173 votes), past polls