aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js/RrdGraph.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/RrdGraph.js')
-rw-r--r--js/RrdGraph.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/RrdGraph.js b/js/RrdGraph.js
index 9b8e3db..6bd75c9 100644
--- a/js/RrdGraph.js
+++ b/js/RrdGraph.js
@@ -249,7 +249,7 @@ RrdGraphDesc.prototype.vdef = function (graph, vname, rpn)
249 if (graph.gdes[this.vidx].gf != RrdGraphDesc.GF_DEF && graph.gdes[this.vidx].gf != RrdGraphDesc.GF_CDEF) { 249 if (graph.gdes[this.vidx].gf != RrdGraphDesc.GF_DEF && graph.gdes[this.vidx].gf != RrdGraphDesc.GF_CDEF) {
250 throw new RrdGraphDescError('variable "'+name+'" not DEF nor CDEF in VDEF.'); 250 throw new RrdGraphDescError('variable "'+name+'" not DEF nor CDEF in VDEF.');
251 } 251 }
252 this.vf = new RrdVdef(rpn.substring(index+1)); 252 this.vf = new RrdVdef(name, rpn.substring(index+1));
253 this.legend = ''; 253 this.legend = '';
254}; 254};
255 255