From 5f423a125f1b7199cedcb674b31fce78caa771a7 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 27 Apr 2008 20:56:52 +0200 Subject: [PATCH] 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 --- bindings/perl/Collectd.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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'}); } } } -- 2.11.0