summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/ajax/rrdui.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/www/ajax/rrdui.js b/www/ajax/rrdui.js
index 5ed315a..d4ea8b6 100644
--- a/www/ajax/rrdui.js
+++ b/www/ajax/rrdui.js
@@ -6,7 +6,7 @@
// Fix up the ENDPOINT config setting
if(ENDPOINT.charAt(0) != '/')
- ENDPOINT = '/' + ENDPOINT;
+ ENDPOINT = '/' + ENDPOINT;
/* TODO: Check setup variables */
/* TODO: Loading indicator */
@@ -166,6 +166,13 @@ function reloadGraph(img, force)
{
img._last = nowTime();
+ /* Fix up the dates so they're in range */
+ if(img._tbeg < 0)
+ {
+ img._tend = (img._tend - img._tbeg) + 1;
+ img._tbeg = 1;
+ }
+
if(!img._visible)
return;