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 40539b3cc0683df30e39033eb2df4d0e8d566353..0de1aa84acb892bb0aaf6a1c2f504e7156af5252 100644 (file)
@@ -3690,9 +3690,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) {