From edae75c21a8f657dd6cc9ace9e8e844ef337a951 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 3 May 2014 18:15:12 +0200 Subject: rename ds_names and dsname to legend This had nothing to do with an RRD data source. --- type/Uptime.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'type/Uptime.class.php') diff --git a/type/Uptime.class.php b/type/Uptime.class.php index 3f8a01e..e57df0b 100644 --- a/type/Uptime.class.php +++ b/type/Uptime.class.php @@ -41,11 +41,11 @@ class Type_Uptime extends Type_Base { $c = 0; foreach ($sources as $source) { - $dsname = empty($this->ds_names[$source]) ? $source : $this->ds_names[$source]; + $legend = empty($this->legend[$source]) ? $source : $this->legend[$source]; $color = is_array($this->colors) ? (isset($this->colors[$source])?$this->colors[$source]:$this->colors[$c++]) : $this->colors; //current value - $rrdgraph[] = sprintf('"LINE1:area_%s#%s:%s"', crc32hex($source), $this->validate_color($color), $this->rrd_escape($dsname)); + $rrdgraph[] = sprintf('"LINE1:area_%s#%s:%s"', crc32hex($source), $this->validate_color($color), $this->rrd_escape($legend)); $rrdgraph[] = sprintf('"GPRINT:c_avg_%s:LAST:%s days\\l"', crc32hex($source), $this->rrd_format); //max value -- cgit v1.1