13 int main(int argc, char *argv[])
15 struct rrd_database *db;
18 rrdtool_check_databases(all_rrds);
21 pr_info("loop start\n");
23 * Update all databases parallel in one shot
25 while ((db = check_update_need((struct rrd_database **)
27 rrdtool_update_data(db);
30 * Let the updates finish
32 if (harvest_zombies(0))
35 sleeptime = get_next_update((struct rrd_database **)&all_rrds);
36 pr_info("Time to sleep %d seconds\n", sleeptime);