diff options
-rw-r--r-- | js/RrdGraph.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/RrdGraph.js b/js/RrdGraph.js index 6bd75c9..e43fa51 100644 --- a/js/RrdGraph.js +++ b/js/RrdGraph.js | |||
@@ -323,7 +323,7 @@ RrdGraphDesc.prototype.gprint = function (graph, vname, cf, format, strftimefmt) | |||
323 | this.vname = vname; | 323 | this.vname = vname; |
324 | this.vidx = graph.find_var(vname); | 324 | this.vidx = graph.find_var(vname); |
325 | this.legend = ''; | 325 | this.legend = ''; |
326 | if (format === undefined) { | 326 | if (!format) { |
327 | this.format = cf; | 327 | this.format = cf; |
328 | switch (graph.gdes[this.vidx].gf) { | 328 | switch (graph.gdes[this.vidx].gf) { |
329 | case RrdGraphDesc.GF_DEF: | 329 | case RrdGraphDesc.GF_DEF: |