1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

asterisk: change tabs for spaces for indentation

the plugin currently has inconsistencies with how lines are indented:
some lines only use tab characters while all other lines use spaces.
Let's make the coding style more uniform by using spaces everywhere.
This commit is contained in:
Gabriel Filion 2019-08-10 21:43:36 -04:00
parent 7492865044
commit 5fff12db96

View file

@ -131,8 +131,8 @@ my $confbridge_enabled = $ENV{'confbridge'} || '1';
my $line, my $error;
my $socket = new IO::Socket::INET(PeerAddr => $peeraddr,
PeerPort => $peerport,
Proto => 'tcp')
PeerPort => $peerport,
Proto => 'tcp')
or $error = "Could not create socket: $!";
if ( $socket ) {
@ -403,9 +403,9 @@ END
}
foreach my $codec (@CODECSX) {
if ($fields[4] eq "$codec") {
$results[$i] = $results[$i] + 1;
$found = 1;
last;
$results[$i] = $results[$i] + 1;
$found = 1;
last;
}
$i++;
}
@ -426,9 +426,9 @@ END
}
foreach my $codec (@CODECS) {
if ($fields[8] eq "$codec") {
$results[$i] = $results[$i] + 1;
$found = 1;
last;
$results[$i] = $results[$i] + 1;
$found = 1;
last;
}
$i++;
}