summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: acd1794)
raw | patch | inline | side by side (parent: acd1794)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 4 Sep 2006 21:10:55 +0000 (21:10 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 4 Sep 2006 21:10:55 +0000 (21:10 +0000) |
program/src/rrd_graph.c | patch | blob | history |
index cd5bdfc16f05050a807b5cd22bb12a8c567e8814..ecf19fd31f2d579a8e59792ae6bb47716170749b 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
** relevant for min and max
*/
if (finite(paintval) && im->gdes[ii].gf != GF_TICK ) {
- if (isnan(minval) || paintval < minval)
- minval = paintval;
+ if ((isnan(minval) || paintval < minval ) &&
+ ! (im->logarithmic && paintval <= 0.0))
+ minval = paintval;
if (isnan(maxval) || paintval > maxval)
maxval = paintval;
}