summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-09-17 22:43:11 +0200
committerTobi Oetiker <tobi@oetiker.ch>2007-09-17 22:43:11 +0200
commit6a75268cbeb2297729926bcf6041188f2b758cae (patch)
treecd0b428629185af8234d5ce0c049ac59a58349db
parentd6a366a132c133b90705e56aace2d24f6e735d7b (diff)
downloadsmokeping-6a75268cbeb2297729926bcf6041188f2b758cae.tar.gz
smokeping-6a75268cbeb2297729926bcf6041188f2b758cae.tar.xz
-rw-r--r--htdocs/cropper/smokeping-zoom.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/htdocs/cropper/smokeping-zoom.js b/htdocs/cropper/smokeping-zoom.js
index e42a6b0..a858d56 100644
--- a/htdocs/cropper/smokeping-zoom.js
+++ b/htdocs/cropper/smokeping-zoom.js
@@ -66,7 +66,7 @@ function changeRRDImage(coords,dimensions){
if (SelectRight > RRDImgWidth - RRDRight)
RightFactor = 10;
- EndEpoch = Math.ceil(StartEpoch + (SelectRight - RRDLeft) * DivEpoch / RRDImgUsable * RightFactor);
+ EndEpoch = Math.ceil(EndEpoch + (SelectRight - (RRDImgWidth - RRDRight) ) * DivEpoch / RRDImgUsable * RightFactor);
StartEpoch = NewStartEpoch;