From a2814f6a4b46a5d9e86146c837ae11343dde4ea7 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 13 May 2013 20:41:14 +0200 Subject: move width/heigth from plugins to type __construct --- plugin/vserver.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'plugin/vserver.php') diff --git a/plugin/vserver.php b/plugin/vserver.php index c727ad9..186166d 100644 --- a/plugin/vserver.php +++ b/plugin/vserver.php @@ -47,8 +47,6 @@ switch($obj->args['type']) { 'rss' => 'ffb000', 'anon' => 'ff00ff', ); - $obj->width = $width; - $obj->heigth = $heigth; $obj->rrd_title = sprintf('Memory utilization on Vserver %s', $obj->args['pinstance']); $obj->rrd_vertical = 'Bytes'; @@ -73,8 +71,6 @@ switch($obj->args['type']) { 'total' => 'ffb000', 'uninterruptable' => 'ff00ff', ); - $obj->width = $width; - $obj->heigth = $heigth; $obj->rrd_title = sprintf('Threads on Vserver %s', $obj->args['pinstance']); $obj->rrd_vertical = 'Numbers'; @@ -106,8 +102,6 @@ switch($obj->args['type']) { $obj->rrd_title = sprintf('Traffic on Vserver %s', $obj->args['pinstance']); $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['network_datasize'])); $obj->scale = $CONFIG['network_datasize'] == 'bits' ? 8 : 1; - $obj->width = $width; - $obj->heigth = $heigth; $obj->rrd_format = '%5.1lf%s'; collectd_flush($obj->identifiers); @@ -121,8 +115,6 @@ switch($obj->args['type']) { $obj->rrd_title = sprintf('Processes on Vserver %s', $obj->args['pinstance']); $obj->rrd_vertical = 'Processes'; - $obj->width = $width; - $obj->heigth = $heigth; $obj->rrd_format = '%5.1lf%s'; collectd_flush($obj->identifiers); -- cgit v1.1