5 #include "draw_graphs.h"
12 int main(int argc, char *argv[])
14 // draw_image(&cpudaily);
16 // draw_images(&all_images);
18 // update_data(&cpumem_rrd);
20 struct rrd_database *db;
24 printf("%d: loop start\n", getpid());
26 * Update all databases parallel in one shot
28 while ((db = check_update_need(&all_rrds)))
32 * Let the updates finish
34 if (harvest_zombies())
37 sleeptime = get_next_update(&all_rrds);
38 printf("Time to sleep %d seconds\n", sleeptime);