[collectd] [PATCH] Collectd.pm: Renamed the plugin_flush() "name" parameter to "plugins".
Sebastian Harl
sh at tokkee.org
Sun Apr 27 20:56:52 CEST 2008
This is more consistent with Collectd::Unixsock.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
bindings/perl/Collectd.pm | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/bindings/perl/Collectd.pm b/bindings/perl/Collectd.pm
index ee265e8..48451c7 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'});
}
}
}
--
1.5.5.1.79.g57cf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080427/93214494/attachment.pgp
More information about the collectd
mailing list