in reply to RRD-Ping getting values on right interval
Rather than rely on sleep 45 you better sleep for 40 seconds and then start polling the internal clock and launch your pings on the dot of the next minute. You will get re-synchronised that way every time and your errors will be minimal.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RRD-Ping getting values on right interval
by hello_world (Acolyte) on Nov 30, 2011 at 10:01 UTC | |
by ww (Archbishop) on Nov 30, 2011 at 11:57 UTC | |
by hello_world (Acolyte) on Nov 30, 2011 at 13:09 UTC | |
by ww (Archbishop) on Nov 30, 2011 at 14:04 UTC | |
by CountZero (Bishop) on Nov 30, 2011 at 13:07 UTC |