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