diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2007-09-17 22:43:11 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2007-09-17 22:43:11 +0200 |
commit | 6a75268cbeb2297729926bcf6041188f2b758cae (patch) | |
tree | cd0b428629185af8234d5ce0c049ac59a58349db /htdocs/cropper | |
parent | d6a366a132c133b90705e56aace2d24f6e735d7b (diff) | |
download | smokeping-6a75268cbeb2297729926bcf6041188f2b758cae.tar.gz smokeping-6a75268cbeb2297729926bcf6041188f2b758cae.tar.xz |
Diffstat (limited to 'htdocs/cropper')
-rw-r--r-- | htdocs/cropper/smokeping-zoom.js | 2 |
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; |