aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type
diff options
context:
space:
mode:
authorPim van den Berg2014-09-25 22:37:30 +0200
committerPim van den Berg2014-09-25 22:37:30 +0200
commitf725d8b84d0777d67a9150bae78e1ad0d586ee41 (patch)
treeed77988f77118ce331f5f1174469aaa625d556d5 /type
parenttype/base: escape space character in rrdcached FLUSH command (diff)
downloadapt-panopticon_cgp-f725d8b84d0777d67a9150bae78e1ad0d586ee41.zip
apt-panopticon_cgp-f725d8b84d0777d67a9150bae78e1ad0d586ee41.tar.gz
apt-panopticon_cgp-f725d8b84d0777d67a9150bae78e1ad0d586ee41.tar.bz2
apt-panopticon_cgp-f725d8b84d0777d67a9150bae78e1ad0d586ee41.tar.xz
type/base: allow rrdtool graph -l (lower-limit) to be configured via config or plugin json
Closes #104
Diffstat (limited to 'type')
-rw-r--r--type/Base.class.php5
1 files changed, 4 insertions, 1 deletions
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 {
284 $rrdgraph[] = '--base'; 284 $rrdgraph[] = '--base';
285 $rrdgraph[] = $this->base; 285 $rrdgraph[] = $this->base;
286 } 286 }
287 if (!array_search('-l', $rrdgraph)) {
288 $rrdgraph[] = '-l';
289 $rrdgraph[] = '0';
290 }
287 $rrdgraph = array_merge($rrdgraph, array( 291 $rrdgraph = array_merge($rrdgraph, array(
288 '-w', is_numeric($this->width) ? $this->width : 400, 292 '-w', is_numeric($this->width) ? $this->width : 400,
289 '-h', is_numeric($this->height) ? $this->height : 175, 293 '-h', is_numeric($this->height) ? $this->height : 175,
290 '-l', '0',
291 '-t', $this->rrd_title 294 '-t', $this->rrd_title
292 )); 295 ));
293 if ($this->rrd_vertical) { 296 if ($this->rrd_vertical) {