aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js/RrdCmdLine.js
diff options
context:
space:
mode:
authorManuel Luis SanmartĂ­n Rozada2015-04-04 00:47:16 +0200
committerPim van den Berg2015-06-22 11:04:06 +0200
commit87ddc9f759c8786ed3589419aaf3711019bd6cbf (patch)
tree6d0962b46da437ebec88ef481da987ea13b7e938 /js/RrdCmdLine.js
parentjsrrdgraph: Fix tabs and spaces (diff)
downloadapt-panopticon_cgp-87ddc9f759c8786ed3589419aaf3711019bd6cbf.zip
apt-panopticon_cgp-87ddc9f759c8786ed3589419aaf3711019bd6cbf.tar.gz
apt-panopticon_cgp-87ddc9f759c8786ed3589419aaf3711019bd6cbf.tar.bz2
apt-panopticon_cgp-87ddc9f759c8786ed3589419aaf3711019bd6cbf.tar.xz
jsrrdgraph: Fix TICK
Diffstat (limited to 'js/RrdCmdLine.js')
-rw-r--r--js/RrdCmdLine.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/RrdCmdLine.js b/js/RrdCmdLine.js
index 10adc5e..077acfa 100644
--- a/js/RrdCmdLine.js
+++ b/js/RrdCmdLine.js
@@ -608,10 +608,9 @@ RrdCmdLine.prototype = {
608 color = this.graph.color2rgba(color); 608 color = this.graph.color2rgba(color);
609 } 609 }
610 610
611 var faction = undefined; 611 var fraction = undefined;
612 if (args.length == 3) 612 if (args.length >= 3 && args[2].legth > 0)
613 fraction = args[2]; 613 fraction = parseFloat(args[2]);
614
615 var legend = undefined; 614 var legend = undefined;
616 if (args.length == 4) 615 if (args.length == 4)
617 legend = args[3]; 616 legend = args[3];