From: Florian Forster Date: Wed, 9 Dec 2009 08:54:35 +0000 (+0100) Subject: openvz plugin: Remove `type' as first argument of `plugin_dispatch_values'. X-Git-Tag: collectd-4.9.0~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0d5cfcd659e9866735222b5e50527bd8b11f4b0b;p=collectd.git openvz plugin: Remove `type' as first argument of `plugin_dispatch_values'. --- diff --git a/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm b/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm index 52754d1b..29441574 100644 --- a/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm +++ b/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm @@ -69,7 +69,7 @@ sub openvz_read { $v{'type'} = $if_instances[$key]; $v{'values'} = [ $counters[$key], $counters[$key + 8] ]; - plugin_dispatch_values($if_instances[$key], \%v); + plugin_dispatch_values(\%v); } } @@ -105,7 +105,7 @@ sub openvz_read { $v{'type_instance'} = $cpu_instances[$key]; $v{'values'} = [ $counters[$key] ]; - plugin_dispatch_values('cpu', \%v); + plugin_dispatch_values(\%v); } } @@ -129,7 +129,7 @@ sub openvz_read $v{'type_instance'} = $val; $v{'values'} = [ $parts[5] * ($parts[6] - $parts[7]), $parts[5] * $parts[7] ]; - plugin_dispatch_values('df', \%v); + plugin_dispatch_values(\%v); } ##################################################################### @@ -142,7 +142,7 @@ sub openvz_read @parts = split(/ +/, `$vzctl exec $veid cat /proc/loadavg`); $v{'values'} = [ $parts[0], $parts[1], $parts[2] ]; - plugin_dispatch_values('load', \%v); + plugin_dispatch_values(\%v); ##################################################################### # processes @@ -166,7 +166,7 @@ sub openvz_read { $v{'type_instance'} = $key; $v{'values'} = [ $ps_states->{$key} ]; - plugin_dispatch_values('ps_state', \%v); + plugin_dispatch_values(\%v); } ##################################################################### @@ -179,7 +179,7 @@ sub openvz_read @lines = split(/\n/, `$vzctl exec $veid w -h`); $v{'values'} = [ scalar(@lines) ]; - plugin_dispatch_values('users', \%v); + plugin_dispatch_values(\%v); } return 1;