diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2007-09-17 22:46:04 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2007-09-17 22:46:04 +0200 |
commit | 306508c440ba0717e63b94511bf4ea3414def403 (patch) | |
tree | 4ea4e76991d4a5d4642309c73c65b3fd28625200 /htdocs | |
parent | 6a75268cbeb2297729926bcf6041188f2b758cae (diff) | |
download | smokeping-306508c440ba0717e63b94511bf4ea3414def403.tar.gz smokeping-306508c440ba0717e63b94511bf4ea3414def403.tar.xz |
make the smokeping zoomer calc a little simpler
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/cropper/smokeping-zoom.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/htdocs/cropper/smokeping-zoom.js b/htdocs/cropper/smokeping-zoom.js index a858d56..0270534 100644 --- a/htdocs/cropper/smokeping-zoom.js +++ b/htdocs/cropper/smokeping-zoom.js @@ -61,14 +61,13 @@ function changeRRDImage(coords,dimensions){ if (SelectLeft < RRDLeft) LeftFactor = 10; - var NewStartEpoch = Math.floor(StartEpoch + (SelectLeft - RRDLeft) * DivEpoch / RRDImgUsable * LeftFactor ); + StartEpoch = Math.floor(StartEpoch + (SelectLeft - RRDLeft) * DivEpoch / RRDImgUsable * LeftFactor ); if (SelectRight > RRDImgWidth - RRDRight) RightFactor = 10; EndEpoch = Math.ceil(EndEpoch + (SelectRight - (RRDImgWidth - RRDRight) ) * DivEpoch / RRDImgUsable * RightFactor); - StartEpoch = NewStartEpoch; $('zoom').src = myURL + '?displaymode=a;start=' + StartEpoch + ';end=' + EndEpoch + ';target=' + Target; |