summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 175a010)
raw | patch | inline | side by side (parent: 175a010)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 30 Jan 2003 21:39:21 +0000 (21:39 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 30 Jan 2003 21:39:21 +0000 (21:39 +0000) |
program/src/rrd_graph.c | patch | blob | history |
index 5060733a876041dfdab7fa592410eabdb89e1d52..9e9cd8f9978812b7bba45f414efdd39d2afcd685 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
/* make sure we do not run into trouble when stacking on NaN */
for(ii=0;ii<im->xsize;ii++){
if (isnan(im->gdes[i].p_data[ii])) {
- double ybase = 0.0;
if (lastgdes) {
- ybase = ytr(im,lastgdes->p_data[ii-1]);
- };
- if (isnan(ybase) || !lastgdes ){
- ybase = ytr(im,areazero);
+ im->gdes[i].p_data[ii] = lastgdes->p_data[ii];
+ } else {
+ im->gdes[i].p_data[ii] = ytr(im,areazero);
}
- im->gdes[i].p_data[ii] = ybase;
}
}
lastgdes = &(im->gdes[i]);