From: Sebastian Harl Date: Sun, 27 Apr 2008 18:56:52 +0000 (+0200) Subject: Collectd.pm: Renamed the plugin_flush() "name" parameter to "plugins". X-Git-Tag: collectd-4.4.0~26 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5f423a125f1b7199cedcb674b31fce78caa771a7;p=collectd.git Collectd.pm: Renamed the plugin_flush() "name" parameter to "plugins". This is more consistent with Collectd::Unixsock. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/bindings/perl/Collectd.pm b/bindings/perl/Collectd.pm index ee265e80..48451c76 100644 --- a/bindings/perl/Collectd.pm +++ b/bindings/perl/Collectd.pm @@ -302,23 +302,23 @@ sub plugin_flush { DEBUG ("Collectd::plugin_flush:" . (defined ($args{'timeout'}) ? " timeout = $args{'timeout'}" : "") - . (defined ($args{'name'}) ? " name = $args{'name'}" : "")); + . (defined ($args{'plugins'}) ? " plugins = $args{'plugins'}" : "")); if (defined ($args{'timeout'}) && ($args{'timeout'} > 0)) { $timeout = $args{'timeout'}; } - if (! defined $args{'name'}) { + if (! defined $args{'plugins'}) { plugin_flush_all ($timeout); } else { - if ("ARRAY" eq ref ($args{'name'})) { - foreach my $name (@{$args{'name'}}) { - plugin_flush_one ($timeout, $name); + if ("ARRAY" eq ref ($args{'plugins'})) { + foreach my $plugin (@{$args{'plugins'}}) { + plugin_flush_one ($timeout, $plugin); } } else { - plugin_flush_one ($timeout, $args{'name'}); + plugin_flush_one ($timeout, $args{'plugins'}); } } }