Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2016-12-08 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (134 votes). Check out past polls.