Skip to content

Commit

Permalink
Merge pull request #216 from jenkins101/interface_linux_multi-fix
Browse files Browse the repository at this point in the history
[Plugin interfaces_linux_multi] Fixed collect loop and some typos
  • Loading branch information
kenyon committed Mar 4, 2013
2 parents fe319da + 191ef79 commit ccaeeff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/network/interfaces_linux_multi
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
use strict;
use warnings;
use Time::HiRes;
use IO::Handle;

my $plugin = $0;
$plugin =~ s/.*\///;
Expand Down Expand Up @@ -130,7 +131,7 @@ if (defined $ENV{MUNIN_UPDATERATE}) {

if (defined $ENV{MUNIN_CACHEFLUSH_RATE}) {
if ($ENV{MUNIN_CACHEFLUSH_RATE} =~ /^[0-9]+$/) {
$update_rate = int($ENV{MUNIN_CACHEFLUSH_RATE});
$flush_interval = int($ENV{MUNIN_CACHEFLUSH_RATE});
} else {
print STDERR "Invalid flush rate: $ENV{MUNIN_CACHEFLUSH_RATE}";
}
Expand All @@ -154,8 +155,8 @@ if (defined $ENV{MUNIN_IF_INCLUDE}) {
}
}
my $exclude_list = undef;
if (defined $ENV{MUNIN_IF_INCLUDE}) {
$exclude_list = [ split(/[[:space:]]+/, $ENV{MUNIN_IF_INCLUDE}) ];
if (defined $ENV{MUNIN_IF_EXCLUDE}) {
$exclude_list = [ split(/[[:space:]]+/, $ENV{MUNIN_IF_EXCLUDE}) ];
if (0 == scalar (@$exclude_list)) {
$exclude_list = undef;
} elsif ('' eq $exclude_list->[0]) {
Expand Down

0 comments on commit ccaeeff

Please sign in to comment.