aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js/RrdGraph.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/RrdGraph.js')
-rw-r--r--js/RrdGraph.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/RrdGraph.js b/js/RrdGraph.js
index 9d35581..dfbbc07 100644
--- a/js/RrdGraph.js
+++ b/js/RrdGraph.js
@@ -379,7 +379,9 @@ RrdGraphDesc.prototype.vrule = function (graph, time, color, legend)
379RrdGraphDesc.prototype.hrule = function (graph, value, color, legend) 379RrdGraphDesc.prototype.hrule = function (graph, value, color, legend)
380{ 380{
381 this.gf = RrdGraphDesc.GF_HRULE; 381 this.gf = RrdGraphDesc.GF_HRULE;
382 this.yrule = value; 382 this.vidx = graph.find_var(value);
383 if (this.vidx == -1)
384 this.yrule = value;
383 this.col = color; 385 this.col = color;
384 if (legend === undefined) this.legend = ''; 386 if (legend === undefined) this.legend = '';
385 else this.legend = ' '+legend; 387 else this.legend = ' '+legend;