And the files that actually handler the tender phase now.
[handlervirt.git] / experiment9.c
blob0342e4ae10106ee8aa2438cd21fb65e8f25dc70d
1 #include <rrd.h>
3 int main() {
4 char **calcpr = NULL;
5 int xsize, ysize;
6 double ymin, ymax;
7 FILE *fd = tmpfile();
8 char *r_graph[] = { "rrdgraph",
9 // "/home/skinkie/development/htdocs/rrdtest.png",
10 "-a",
11 "PNG",
12 "-w",
13 "600",
14 "-h",
15 "200",
16 "DEF:cputime=/mnt/netapp/users/klant1/gentoo/cpuTime.rrd:cpuTime:AVERAGE:step=30",
17 "CDEF:cpuload=cputime,1000000000,/",
18 "LINE:cpuload#EE0000:cpuLoad" };
20 rrd_graph(10, r_graph, &calcpr, &xsize, &ysize, fd, &ymin, &ymax);
22 fclose(fd);