diff options
-rw-r--r-- | src/examples/rrdJFlot.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/examples/rrdJFlot.html b/src/examples/rrdJFlot.html index 73c6da5..3fb045f 100644 --- a/src/examples/rrdJFlot.html +++ b/src/examples/rrdJFlot.html @@ -141,7 +141,11 @@ if (el!=undefined) { rra_pairs[i]=([(last_update+(i-rows+1)*step)*1000.0,el]); } else { - rra_pairs[i]=null; + if ((i>0) && ((i+1)<rows)) { + rra_pairs[i]=null; + } else { + rra_pairs[i]=0; // first and last must be defined or Flot gets confused + } } } |