Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: RRD-Ping getting values on right interval

by decnartne (Beadle)
on Nov 30, 2011 at 21:41 UTC ( #940940=note: print w/replies, xml ) Need Help??


in reply to RRD-Ping getting values on right interval

snipped from some code we run for similar purposes:
my $QUERY_INTERVAL = 60; #edit here to 60 (was 120) while( 1 ) { my $now = time; my $sleep_secs = $QUERY_INTERVAL - ( $now % $QUERY_INTERVAL ); sleep( $sleep_secs ); logmsg( "INFO", "getting counts" ); get_zcounts(); }

decnartne ~ entranced

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940940]
help
Chatterbox?
and the shadows deepen...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-10-22 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (273 votes). Check out past polls.

    Notices?