summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-21 01:08:30 +0000
committerStef Walter <stef@memberwebs.com>2006-01-21 01:08:30 +0000
commit419c1fbc2f0b07af7ab251b988a556cffa700520 (patch)
tree4b449b8daa6924c129ab63efc0aad2c0c926aa6c
parent13461e5282ede2470d24bec06ebbffd104290d07 (diff)
Fix range problem with zoom in.
-rw-r--r--html/rrdui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/rrdui.js b/html/rrdui.js
index e61f545..bfb3cf3 100644
--- a/html/rrdui.js
+++ b/html/rrdui.js
@@ -263,7 +263,7 @@ function zoomGraphSelect(zoom)
/* Limit it to the right range */
var range = zoom._img.width - GRAPH_MARGIN_RIGHT - GRAPH_MARGIN_LEFT;
start = start < left ? 0 : start - left;
- end = end > range ? range : end - left;
+ end = end - left > range ? range : end - left;
/* Compute the ratio pixels:time */
var ratio = (zoom._img._tend - zoom._img._tbeg) / range;