mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +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
|
@ -128,7 +128,7 @@ switch ($0) {
|
|||
print "missratio.draw STACK\n";
|
||||
exit 0;
|
||||
}
|
||||
|
||||
|
||||
my $total = $hash->{'keyspace_hits'} + $hash->{'keyspace_misses'};
|
||||
my $hitratio = 0;
|
||||
my $missratio = 0;
|
||||
|
@ -177,7 +177,7 @@ switch ($0) {
|
|||
print "used_memory_rss.value ". $hash->{'used_memory_rss'} ."\n";
|
||||
print "used_memory_peak.value ". $hash->{'used_memory_peak'} ."\n";
|
||||
}
|
||||
|
||||
|
||||
case "used_keys" {
|
||||
my $dbs;
|
||||
foreach my $key (keys %{$hash}) {
|
||||
|
@ -210,18 +210,18 @@ switch ($0) {
|
|||
close ($sock);
|
||||
|
||||
sub get_conn {
|
||||
|
||||
|
||||
my $sock;
|
||||
|
||||
|
||||
if( $UNIX_SOCKET && -S $UNIX_SOCKET ){
|
||||
|
||||
|
||||
$sock = IO::Socket::UNIX->new(
|
||||
Type => SOCK_STREAM(),
|
||||
Peer => $UNIX_SOCKET,
|
||||
);
|
||||
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
$sock = IO::Socket::INET->new(
|
||||
PeerAddr => $HOST,
|
||||
PeerPort => $PORT,
|
||||
|
@ -229,7 +229,7 @@ sub get_conn {
|
|||
Proto => 'tcp'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
if ( defined( $PASSWORD ) ) {
|
||||
print $sock "AUTH ", $PASSWORD, "\r\n";
|
||||
my $result = <$sock> || die "can't read socket: $!";
|
||||
|
|
|
@ -120,8 +120,8 @@ elsif ($opt eq 'queues_size') {
|
|||
my $name = $queue;
|
||||
$name =~ s/:/_/;
|
||||
|
||||
my $size = $r->llen("${NAMESPACE}:queue:${queue}") || 0;
|
||||
|
||||
my $size = $r->llen("${NAMESPACE}:queue:${queue}") || 0;
|
||||
|
||||
$total += $size;
|
||||
|
||||
print "${name}_size.value ${size}\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue