aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type/Default.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'type/Default.class.php')
-rw-r--r--type/Default.class.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/type/Default.class.php b/type/Default.class.php
index 9f3b97a..6e7efd9 100644
--- a/type/Default.class.php
+++ b/type/Default.class.php
@@ -35,13 +35,12 @@ class Type_Default extends Type_Base {
35 } 35 }
36 } 36 }
37 37
38 if(count($this->files)<=1) { 38 if ($this->graph_minmax) {
39 $c = 0; 39 $c = 0;
40 foreach ($sources as $source) { 40 foreach ($sources as $source) {
41 $color = is_array($this->colors) ? (isset($this->colors[$source])?$this->colors[$source]:$this->colors[$c++]): $this->colors; 41 $color = is_array($this->colors) ? (isset($this->colors[$source])?$this->colors[$source]:$this->colors[$c++]): $this->colors;
42 $rrdgraph[] = sprintf('AREA:max_%s#%s', crc32hex($source), $this->get_faded_color($color)); 42 $rrdgraph[] = sprintf('LINE1:max_%s#%s', crc32hex($source), $this->get_faded_color($color));
43 $rrdgraph[] = sprintf('AREA:min_%s#%s', crc32hex($source), 'ffffff'); 43 $rrdgraph[] = sprintf('LINE1:min_%s#%s', crc32hex($source), $this->get_faded_color($color));
44 break; # only 1 area to draw
45 } 44 }
46 } 45 }
47 46