mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 18:07:20 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -18,7 +18,7 @@ bandwidth_<interface> to this file. E.g.
|
|||
|
||||
Most likely usage is to monitor an interface connected to your ISP.
|
||||
|
||||
The suggest option will try and determine if you have any interfaces with a
|
||||
The suggest option will try and determine if you have any interfaces with a
|
||||
public IP and if so it will suggest monitoring those interfaces. If all
|
||||
IP addresses are private the setup will have to be done manually. Suggest
|
||||
does not handle IPv6 addresses.
|
||||
|
@ -192,12 +192,12 @@ EOM
|
|||
}
|
||||
|
||||
sub read_traffic {
|
||||
open( my $rx, "<", "/sys/class/net/$interface/statistics/rx_bytes" )
|
||||
open( my $rx, "<", "/sys/class/net/$interface/statistics/rx_bytes" )
|
||||
|| die "Unable to read: $!";
|
||||
$counter_input = <$rx>;
|
||||
chomp $counter_input;
|
||||
close($rx);
|
||||
open(my $tx , "<", "/sys/class/net/$interface/statistics/tx_bytes" )
|
||||
open(my $tx , "<", "/sys/class/net/$interface/statistics/tx_bytes" )
|
||||
|| die "Unable to read: $!";
|
||||
$counter_output = <$tx>;
|
||||
chomp $counter_output;
|
||||
|
@ -231,7 +231,7 @@ sub update_stats {
|
|||
else {
|
||||
if ( $perf_ref->{last}->{counter_input} > $counter_input ) {
|
||||
$input =
|
||||
$counter_input
|
||||
$counter_input
|
||||
+ $rollover
|
||||
- $perf_ref->{last}->{counter_input};
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ sub update_stats {
|
|||
}
|
||||
if ( $perf_ref->{last}->{counter_output} > $counter_output ) {
|
||||
$output =
|
||||
$counter_output
|
||||
$counter_output
|
||||
+ $rollover
|
||||
- $perf_ref->{last}->{counter_output};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue