summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25c7db6)
raw | patch | inline | side by side (parent: 25c7db6)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 14 Jan 2009 08:14:31 +0000 (08:14 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 14 Jan 2009 08:14:31 +0000 (08:14 +0000) |
but read out of u_int (u_long vs. int). This breaks on LP64BE. Patch by
Rafal Boni rafal pobox.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1733 a5681a0c-68f1-0310-ab6d-d61299d08faa
Rafal Boni rafal pobox.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1733 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 63a4b2e1dad9639a9901f71f3283c2abd132c0e1..ad46339f650503a585e6467332d8aae9f64e4fb9 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
*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) {