summaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-09-17 22:46:04 +0200
committerTobi Oetiker <tobi@oetiker.ch>2007-09-17 22:46:04 +0200
commit306508c440ba0717e63b94511bf4ea3414def403 (patch)
tree4ea4e76991d4a5d4642309c73c65b3fd28625200 /htdocs
parent6a75268cbeb2297729926bcf6041188f2b758cae (diff)
downloadsmokeping-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.js3
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;