diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/RrdGraph.js | 4 |
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) | |||
379 | RrdGraphDesc.prototype.hrule = function (graph, value, color, legend) | 379 | RrdGraphDesc.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; |