diff options
Diffstat (limited to 'type/Base.class.php')
-rw-r--r-- | type/Base.class.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/type/Base.class.php b/type/Base.class.php index 9ceee4e..5de381e 100644 --- a/type/Base.class.php +++ b/type/Base.class.php | |||
@@ -12,7 +12,7 @@ class Type_Base { | |||
12 | var $data_sources = array('value'); | 12 | var $data_sources = array('value'); |
13 | var $order; | 13 | var $order; |
14 | var $legend = array(); | 14 | var $legend = array(); |
15 | var $colors | 15 | var $colors = array(); |
16 | var $rrd_title; | 16 | var $rrd_title; |
17 | var $rrd_vertical; | 17 | var $rrd_vertical; |
18 | var $rrd_format = '%5.1lf%s'; | 18 | var $rrd_format = '%5.1lf%s'; |
@@ -175,8 +175,9 @@ class Type_Base { | |||
175 | function rrd_graph($debug = false) { | 175 | function rrd_graph($debug = false) { |
176 | $this->collectd_flush(); | 176 | $this->collectd_flush(); |
177 | 177 | ||
178 | if (!$this->colors) | 178 | $colors = $this->colors; |
179 | $this->rainbow_colors(); | 179 | $this->rainbow_colors(); |
180 | $this->colors = array_merge($this->colors, $colors); | ||
180 | 181 | ||
181 | $graphdata = $this->rrd_gen_graph(); | 182 | $graphdata = $this->rrd_gen_graph(); |
182 | 183 | ||