http://qs1969.pair.com?node_id=216917


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

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.