[rrd-developers] Re: rrd_graph.c: draw_horizontal_grid(), im->maxval=NaN(0xfffffffffffff)
Stanislav Sinyagin
ssinyagin at yahoo.com
Sat Apr 26 19:21:44 MEST 2003
here's where pixie becomes infinite:
Starting program: /usr/local/rrdtool-1.1.0/bin/rrdtool graph /tmp/aaaa.png --imgformat=PNG
--width=500 --height=400 DEF:A=/tmp/getdim-23809.rrd:A:AVERAGE LINE1:A#000000
Breakpoint 1, ytr (im=0xffbec968, value=NaN(0xfffffffffffff))
at rrd_graph.c:137
137 if (isnan(value)){
(gdb) p value
$1 = NaN(0xfffffffffffff)
(gdb) where
#0 ytr (im=0xffbec968, value=NaN(0xfffffffffffff)) at rrd_graph.c:137
#1 0x273bc in apply_gridfit (im=0xffbec968) at rrd_graph.c:447
#2 0x304b8 in graph_paint (im=0xffbec968, calcpr=0xffbed1f0)
at rrd_graph.c:2256
#3 0x32a78 in rrd_graph (argc=7, argv=0xffbefb28, prdata=0xffbed1f0,
xsize=0xffbed1f8, ysize=0xffbed1fc) at rrd_graph.c:2598
#4 0x1c734 in HandleInputLine (argc=8, argv=0xffbefb24, out=0xff340294)
at rrd_tool.c:591
#5 0x1b474 in main (argc=8, argv=0xffbefb24) at rrd_tool.c:364
(gdb) n
138 if(!im->logarithmic)
(gdb)
139 pixie = (double) im->ysize / (im->maxval - im->minval);
(gdb) p im->maxval
$2 = 2.4999999999986337e-312
(gdb) p (im->maxval - im->minval)
$3 = 5.00000000001703e-313
(gdb) p im->ysize
$4 = 400
(gdb) n
142 yval = im->yorigin;
(gdb) p pixie
$5 = Infinity
--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-developers
mailing list