summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3c3effa)
-- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1600
a5681a0c-68f1-0310-ab6d-
d61299d08faa
flush_old_values (config_write_interval);
/* Determine the time of the next cache flush. */
flush_old_values (config_write_interval);
/* Determine the time of the next cache flush. */
- while (next_flush.tv_sec <= now.tv_sec)
- next_flush.tv_sec += config_flush_interval;
+ next_flush.tv_sec =
+ now.tv_sec + next_flush.tv_sec % config_flush_interval;
/* unlock the cache while we rotate so we don't block incoming
* updates if the fsync() blocks on disk I/O */
/* unlock the cache while we rotate so we don't block incoming
* updates if the fsync() blocks on disk I/O */