diff options
Diffstat (limited to 'html')
-rw-r--r-- | html/rrdui.js | 2 |
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; |