X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_graph.c;h=19e3c4033f87fec325a458ef74976d5ed16f7bd8;hb=f4abf7d18767b842801a7c38f922e34e0ff3c890;hp=40539b3cc0683df30e39033eb2df4d0e8d566353;hpb=22424d6b1c6a14c1d919482f991427c7e43853a8;p=rrdtool.git diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 40539b3..19e3c40 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -3115,6 +3115,10 @@ int graph_paint( grinfo_push(im, sprintf_alloc("image_width"), RD_I_CNT, info); info.u_cnt = im->yimg; grinfo_push(im, sprintf_alloc("image_height"), RD_I_CNT, info); + info.u_cnt = im->start; + grinfo_push(im, sprintf_alloc("graph_start"), RD_I_CNT, info); + info.u_cnt = im->end; + grinfo_push(im, sprintf_alloc("graph_end"), RD_I_CNT, info); /* get actual drawing data and find min and max values */ if (data_proc(im) == -1) @@ -3690,9 +3694,9 @@ int rrd_graph( *ymax = 0; while (walker) { if (strcmp(walker->key, "image_width") == 0) { - *xsize = walker->value.u_int; + *xsize = walker->value.u_cnt; } else if (strcmp(walker->key, "image_height") == 0) { - *ysize = walker->value.u_int; + *ysize = walker->value.u_cnt; } else if (strcmp(walker->key, "value_min") == 0) { *ymin = walker->value.u_val; } else if (strcmp(walker->key, "value_max") == 0) {