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

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -85,7 +85,7 @@ if ( exists $ARGV[0] and $ARGV[0] eq "config" ) {
print "ax_used_connections.label Peak Listeners\n";
print "ax_used_connections.type GAUGE\n";
# DJ-Online tag must be eq to Peak Listeners
# DJ-Online tag must be eq to Peak Listeners
print "djonline_tag.draw AREA\n";
print "djonline_tag.colour e5ff60\n";
print "djonline_tag.min 0\n";

View file

@ -200,7 +200,7 @@ sub print_active_data {
foreach my $sid (sort keys %{$sidDataRef}) {
print "multigraph shoutcast2_active.active_sid_$sid\n";
foreach my $dsrc (@{$graphsRef->{sid_active}->{datasrc}}) {
print "$dsrc->{name}.value $sidDataRef->{$sid}->{$dsrc->{xmlkey}}\n";
print "$dsrc->{name}.value $sidDataRef->{$sid}->{$dsrc->{xmlkey}}\n";
if ($sidDataRef->{$sid}->{$dsrc->{xmlkey}} == 1) {
$globalActive = 1;
}
@ -216,7 +216,7 @@ sub print_active_data {
=head2 print_listener_data
This subroutine prints out the listener graph values for each stream and ultimately
adds all of the current users together to show that against the maxserver count in
adds all of the current users together to show that against the maxserver count in
the global graph. Clicking on the global graph will reveal a bit more information
about the users on a stream by stream basis.
@ -228,7 +228,7 @@ sub print_listener_data {
foreach my $sid (sort keys %{$sidDataRef}) {
print "multigraph shoutcast2_listeners.listeners_sid_$sid\n";
foreach my $dsrc (@{$graphsRef->{sid_listeners}->{datasrc}}) {
print "$dsrc->{name}.value $sidDataRef->{$sid}->{$dsrc->{xmlkey}}\n";
print "$dsrc->{name}.value $sidDataRef->{$sid}->{$dsrc->{xmlkey}}\n";
if ($dsrc->{name} eq 'currlisteners') {
$globalListeners += $sidDataRef->{$sid}->{$dsrc->{xmlkey}};
}
@ -283,7 +283,7 @@ sub config {
}
print_active_config($sidDataRef);
print_listener_config($sidDataRef);
return;
return;
}
=head2 print_active_config
@ -409,7 +409,7 @@ sub fetch_sid_data {
my $response = $ua->get($url);
if ($response->is_success) {
my $returnRef = XMLin($response->decoded_content);
return (1, $returnRef);
return (1, $returnRef);
} else {
return (0, $response->status_line);
}
@ -431,7 +431,7 @@ sub fetch_admin_data {
if ($response->is_success) {
my $returnRef = XMLin($response->decoded_content);
if (($returnRef->{STREAMCONFIGS}->{TOTALCONFIGS} > 0) && (defined($returnRef->{STREAMCONFIGS}->{STREAMCONFIG}))) {
return (1, $returnRef);
return (1, $returnRef);
} else {
return (0, 'Unable to Detect any Stream Configurations');
}