From 88d96aa4a4d3321384b6f729a12f25de1de503f5 Mon Sep 17 00:00:00 2001 From: Manuel Luis SanmartĂ­n Rozada Date: Sat, 4 Apr 2015 00:54:52 +0200 Subject: jsrrdgraph: Fix typo --- js/RrdCmdLine.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/RrdCmdLine.js b/js/RrdCmdLine.js index 077acfa..66468bf 100644 --- a/js/RrdCmdLine.js +++ b/js/RrdCmdLine.js @@ -607,9 +607,8 @@ RrdCmdLine.prototype = { color = this.graph.parse_color(args[1].substr(index+1)); color = this.graph.color2rgba(color); } - var fraction = undefined; - if (args.length >= 3 && args[2].legth > 0) + if (args.length >= 3 && args[2].length > 0) fraction = parseFloat(args[2]); var legend = undefined; if (args.length == 4) -- cgit v1.1