From 589111dddb1329b08c03ecc54ab3e97ff742f9f4 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Wed, 15 Sep 2010 19:00:35 +0200 Subject: plugin/nfs: clean up some duplicate code --- plugin/nfs.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugin') diff --git a/plugin/nfs.php b/plugin/nfs.php index be131c2..24a61a8 100644 --- a/plugin/nfs.php +++ b/plugin/nfs.php @@ -17,23 +17,20 @@ $obj->data_sources = array('value'); switch($obj->args['pinstance']) { case 'v2client': $obj->order = array('create', 'fsstat', 'getattr', 'link', 'lookup', 'mkdir', 'null', 'readdir', 'readlink', 'read', 'remove', 'rename', 'rmdir', 'root', 'setattr', 'symlink', 'wrcache', 'write'); - $obj->generate_colors(); break; case 'v3client': $obj->order = array('access', 'commit', 'create', 'fsinfo', 'fsstat', 'getattr', 'link', 'lookup', 'mkdir', 'mknod', 'null', 'pathconf', 'read', 'readdir', 'readdirplus', 'readlink', 'remove', 'rename', 'rmdir', 'setattr', 'symlink', 'write'); - $obj->generate_colors(); - break; - - } + $obj->width = $width; $obj->heigth = $heigth; $obj->rrd_title = sprintf('NFS-%s Procedures', $obj->args['pinstance']); $obj->rrd_vertical = 'Procedures'; $obj->rrd_format = '%5.2lf'; +$obj->generate_colors(); collectd_flush($obj->identifiers); $obj->rrd_graph(); -- cgit v1.1