aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type/Base.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'type/Base.class.php')
-rw-r--r--type/Base.class.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/type/Base.class.php b/type/Base.class.php
index 4cb9e18..40f3df0 100644
--- a/type/Base.class.php
+++ b/type/Base.class.php
@@ -17,6 +17,7 @@ class Type_Base {
17 var $rrd_vertical; 17 var $rrd_vertical;
18 var $rrd_format = '%5.1lf%s'; 18 var $rrd_format = '%5.1lf%s';
19 var $scale = 1; 19 var $scale = 1;
20 var $base;
20 var $width; 21 var $width;
21 var $height; 22 var $height;
22 var $graph_type; 23 var $graph_type;
@@ -253,6 +254,8 @@ class Type_Base {
253 $rrdgraph[] = $this->rrdtool_opts; 254 $rrdgraph[] = $this->rrdtool_opts;
254 if ($this->graph_smooth) 255 if ($this->graph_smooth)
255 $rrdgraph[] = '-E'; 256 $rrdgraph[] = '-E';
257 if ($this->base)
258 $rrdgraph[] = '--base '.$this->base;
256 $rrdgraph[] = sprintf('-w %d', is_numeric($this->width) ? $this->width : 400); 259 $rrdgraph[] = sprintf('-w %d', is_numeric($this->width) ? $this->width : 400);
257 $rrdgraph[] = sprintf('-h %d', is_numeric($this->height) ? $this->height : 175); 260 $rrdgraph[] = sprintf('-h %d', is_numeric($this->height) ? $this->height : 175);
258 $rrdgraph[] = '-l 0'; 261 $rrdgraph[] = '-l 0';