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

@ -91,7 +91,7 @@ for ( $i = 1; ($i < $#top and $quit == 0); $i++ ) {
print "sys.value " . $sys . "\n";
print "user.value " . $usr . "\n";
print "idle.value " . $idl . "\n";
$quit = 1;
$quit = 1;
}
}

View file

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/perl
# -*- perl -*-
=head1 NAME
@ -69,10 +69,10 @@ if ( defined($ARGV[0])) {
}
}
@uptime = `/usr/bin/uptime`;
@uptime = `/usr/bin/uptime`;
foreach(@uptime) {
$_ =~ m/^.+up (.+?), \d+ us.+$/;
$timestr = $1;
$timestr = $1;
if ( $timestr =~ m/^(\d+) day.+?$/ ) {
$days = $1;
} else { $days = 0; }

View file

@ -32,12 +32,12 @@ my $cmd = "ps -ef | awk '/[p]ppd/ {print substr(\$NF,2);}' | wc -l";
if ( exists $ARGV[0] and $ARGV[0] eq "config" ) {
print "graph_category network\n";
print "graph_args --base 1024 -r --lower-limit 0\n";
print "graph_args --base 1024 -r --lower-limit 0\n";
print "graph_title Number of VPN Connections\n";
print "graph_vlabel VPN Connections\n";
print "graph_info The Graph shows the Number of VPN Connections\n";
print "graph_info The Graph shows the Number of VPN Connections\n";
print "connections.label Number of VPN Connections\n";
print "connections.type GAUGE\n";
print "connections.type GAUGE\n";
} else {
my $output = `$cmd`;
print "connections.value $output";