From bebb5ba2cb1316055ee8a582f3b4968a24098ce4 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 3 May 2014 13:26:40 +0200 Subject: type/base: set default values for rrd_title and rrd_format --- type/Base.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { var $colors; var $rrd_title; var $rrd_vertical; - var $rrd_format; + var $rrd_format = '%5.1lf%s'; var $scale = 1; var $width; var $height; @@ -36,6 +36,7 @@ class Type_Base { $this->rrdtool_opts = $config['rrdtool_opts']; $this->cache = $config['cache']; $this->parse_get($_get); + $this->rrd_title = $this->args['plugin']; $this->rrd_files(); $this->width = isset($_get['x']) ? $_get['x'] : $config['width']; $this->height = isset($_get['y']) ? $_get['y'] : $config['height']; -- cgit v1.1