From 01039a24a6cc88a828f20647ae6dda5ee15a0e09 Mon Sep 17 00:00:00 2001 From: Poil Date: Sun, 18 May 2014 12:28:34 +0200 Subject: Add base option (1GB=1024Mo) --- type/Base.class.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'type') 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 { var $rrd_vertical; var $rrd_format = '%5.1lf%s'; var $scale = 1; + var $base; var $width; var $height; var $graph_type; @@ -253,6 +254,8 @@ class Type_Base { $rrdgraph[] = $this->rrdtool_opts; if ($this->graph_smooth) $rrdgraph[] = '-E'; + if ($this->base) + $rrdgraph[] = '--base '.$this->base; $rrdgraph[] = sprintf('-w %d', is_numeric($this->width) ? $this->width : 400); $rrdgraph[] = sprintf('-h %d', is_numeric($this->height) ? $this->height : 175); $rrdgraph[] = '-l 0'; -- cgit v1.1