From f725d8b84d0777d67a9150bae78e1ad0d586ee41 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Thu, 25 Sep 2014 22:37:30 +0200 Subject: type/base: allow rrdtool graph -l (lower-limit) to be configured via config or plugin json Closes #104 --- type/Base.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/type/Base.class.php b/type/Base.class.php index 1452d43..8d51121 100644 --- a/type/Base.class.php +++ b/type/Base.class.php @@ -284,10 +284,13 @@ class Type_Base { $rrdgraph[] = '--base'; $rrdgraph[] = $this->base; } + if (!array_search('-l', $rrdgraph)) { + $rrdgraph[] = '-l'; + $rrdgraph[] = '0'; + } $rrdgraph = array_merge($rrdgraph, array( '-w', is_numeric($this->width) ? $this->width : 400, '-h', is_numeric($this->height) ? $this->height : 175, - '-l', '0', '-t', $this->rrd_title )); if ($this->rrd_vertical) { -- cgit v1.1