diff options
Diffstat (limited to '')
-rw-r--r-- | js/RrdCmdLine.js | 7 |
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]; |