summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 99c9ed1)
raw | patch | inline | side by side (parent: 99c9ed1)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 27 Apr 2008 18:56:52 +0000 (20:56 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 30 Apr 2008 08:40:50 +0000 (10:40 +0200) |
This is more consistent with Collectd::Unixsock.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
bindings/perl/Collectd.pm | patch | blob | history |
index ee265e8026e9d9f39eee3a426e548bcddd8e15c2..48451c766219f6f6697ff0ef4e343b13d69a6c2c 100644 (file)
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'});
}
}
}