Code

In rrd_graph: the width/height values are written into rrd_infoval_t's u_cnt
[rrdtool-all.git] / program / src / rrd_graph.c
index 63a4b2e1dad9639a9901f71f3283c2abd132c0e1..ad46339f650503a585e6467332d8aae9f64e4fb9 100644 (file)
@@ -3654,9 +3654,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) {