Skip to content
This repository
Browse code

interface_linux_multi: fixed collect loop, fixed flush_rate, fixed ex…

…clude interfaces
  • Loading branch information...
commit 191ef79a803e3a21fd4bb03179647b44fafd35a2 1 parent e5ceabe
Daniel Forsberg authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  plugins/network/interfaces_linux_multi
7  plugins/network/interfaces_linux_multi
@@ -85,6 +85,7 @@
85 85
 use strict;
86 86
 use warnings;
87 87
 use Time::HiRes;
  88
+use IO::Handle;
88 89
 
89 90
 my $plugin = $0;
90 91
 $plugin =~ s/.*\///;
@@ -130,7 +131,7 @@ if (defined $ENV{MUNIN_UPDATERATE}) {
130 131
 
131 132
 if (defined $ENV{MUNIN_CACHEFLUSH_RATE}) {
132 133
 	if ($ENV{MUNIN_CACHEFLUSH_RATE} =~ /^[0-9]+$/) {
133  
-		$update_rate = int($ENV{MUNIN_CACHEFLUSH_RATE});
  134
+		$flush_interval = int($ENV{MUNIN_CACHEFLUSH_RATE});
134 135
 	} else {
135 136
 		print STDERR "Invalid flush rate: $ENV{MUNIN_CACHEFLUSH_RATE}";
136 137
 	}
@@ -154,8 +155,8 @@ if (defined $ENV{MUNIN_IF_INCLUDE}) {
154 155
 	}
155 156
 }
156 157
 my $exclude_list = undef;
157  
-if (defined $ENV{MUNIN_IF_INCLUDE}) {
158  
-	$exclude_list = [ split(/[[:space:]]+/, $ENV{MUNIN_IF_INCLUDE}) ];
  158
+if (defined $ENV{MUNIN_IF_EXCLUDE}) {
  159
+	$exclude_list = [ split(/[[:space:]]+/, $ENV{MUNIN_IF_EXCLUDE}) ];
159 160
 	if (0 == scalar (@$exclude_list)) {
160 161
 		$exclude_list = undef;
161 162
 	} elsif ('' eq $exclude_list->[0]) {

0 notes on commit 191ef79

Please sign in to comment.
Something went wrong with that request. Please try again.