diff options
author | Frank Wuerthwein <fkw@ucsd.edu> | 2009-02-13 03:38:35 +0000 |
---|---|---|
committer | Frank Wuerthwein <fkw@ucsd.edu> | 2009-02-13 03:38:35 +0000 |
commit | a597c372292cc844ff3706aae5728aa274c6f787 (patch) | |
tree | 4190d0b4255d57878adf3d8543460fc7bf78440a /src/examples | |
parent | 56b8b090d8f37db46f686b7dd8a9d4f8a72c9fd2 (diff) |
Workaround for flot timestamp handling
Diffstat (limited to 'src/examples')
-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 + } } } |