summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4eb08e6)
raw | patch | inline | side by side (parent: 4eb08e6)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 14 May 2005 09:35:02 +0000 (09:35 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 14 May 2005 09:35:02 +0000 (09:35 +0000) |
than the bound so that the code can detect this by comparing it with the
bound, but make it so small that it is not visible.
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@556 a5681a0c-68f1-0310-ab6d-d61299d08faa
bound, but make it so small that it is not visible.
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@556 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 bb4c542ec75fb95aa8b5413cfaf1a50faad2ce58..f508cf5393cf6009c1b6eea3ea2f128c0cdc8b59 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
if (! im->rigid) {
/* keep yval as-is */
} else if (yval > im->yorigin) {
- yval = im->yorigin;
+ yval = im->yorigin +0.00001;
} else if (yval < im->yorigin - im->ysize){
- yval = im->yorigin - im->ysize;
+ yval = im->yorigin - im->ysize - 0.00001;
}
return yval;
}