aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type
diff options
context:
space:
mode:
authorPim van den Berg2014-05-03 13:26:40 +0200
committerPim van den Berg2014-05-03 19:19:10 +0200
commitbebb5ba2cb1316055ee8a582f3b4968a24098ce4 (patch)
tree535afb40a1157a190186a8756c5dd5cd3902db0c /type
parentmove collectd_flush function to base class (diff)
downloadapt-panopticon_cgp-bebb5ba2cb1316055ee8a582f3b4968a24098ce4.zip
apt-panopticon_cgp-bebb5ba2cb1316055ee8a582f3b4968a24098ce4.tar.gz
apt-panopticon_cgp-bebb5ba2cb1316055ee8a582f3b4968a24098ce4.tar.bz2
apt-panopticon_cgp-bebb5ba2cb1316055ee8a582f3b4968a24098ce4.tar.xz
type/base: set default values for rrd_title and rrd_format
Diffstat (limited to 'type')
-rw-r--r--type/Base.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/type/Base.class.php b/type/Base.class.php
index fe31814..e1aae19 100644
--- a/type/Base.class.php
+++ b/type/Base.class.php
@@ -15,7 +15,7 @@ class Type_Base {
15 var $colors; 15 var $colors;
16 var $rrd_title; 16 var $rrd_title;
17 var $rrd_vertical; 17 var $rrd_vertical;
18 var $rrd_format; 18 var $rrd_format = '%5.1lf%s';
19 var $scale = 1; 19 var $scale = 1;
20 var $width; 20 var $width;
21 var $height; 21 var $height;
@@ -36,6 +36,7 @@ class Type_Base {
36 $this->rrdtool_opts = $config['rrdtool_opts']; 36 $this->rrdtool_opts = $config['rrdtool_opts'];
37 $this->cache = $config['cache']; 37 $this->cache = $config['cache'];
38 $this->parse_get($_get); 38 $this->parse_get($_get);
39 $this->rrd_title = $this->args['plugin'];
39 $this->rrd_files(); 40 $this->rrd_files();
40 $this->width = isset($_get['x']) ? $_get['x'] : $config['width']; 41 $this->width = isset($_get['x']) ? $_get['x'] : $config['width'];
41 $this->height = isset($_get['y']) ? $_get['y'] : $config['height']; 42 $this->height = isset($_get['y']) ? $_get['y'] : $config['height'];