summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Schwaer2016-03-15 15:35:35 +0100
committerStephan Schwaer2016-03-15 15:35:35 +0100
commitc124dd4a4d501e05bbfc87a1cd62a45f917fd32f (patch)
treeaa3304c90ef3f61190e8651c67fdf865a6933af3
parentMerge branch 'master' of git.openslx.org:dnbd3-status (diff)
downloaddnbd3-status-c124dd4a4d501e05bbfc87a1cd62a45f917fd32f.tar.gz
dnbd3-status-c124dd4a4d501e05bbfc87a1cd62a45f917fd32f.tar.xz
dnbd3-status-c124dd4a4d501e05bbfc87a1cd62a45f917fd32f.zip
Fixed typo in calculation.
-rw-r--r--static/status-dnbd3.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/status-dnbd3.html b/static/status-dnbd3.html
index 0971f8a..6b4e68d 100644
--- a/static/status-dnbd3.html
+++ b/static/status-dnbd3.html
@@ -157,8 +157,8 @@ function myGraph(el) {
// link.downloadRate = 30000;
// fading speed
- var fadingValue = (link.colorIntensity*0,85) - 200;
- if (fadingValue > 0) link.colorIntensity = fadingValue;
+ var fadingValue = (link.colorIntensity*0,85) + 100;
+ if (fadingValue > 0) link.colorIntensity -= fadingValue;
if (link.colorIntensity < 0) link.colorIntensity = 0;
link.colorIntensity += link.downloadRate;