mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 09:57:09 +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
|
@ -44,7 +44,7 @@ http://www.brendangregg.com/K9Toolkit/swapinfo
|
|||
|
||||
=head1 LICENSE
|
||||
|
||||
GPL 2.
|
||||
GPL 2.
|
||||
|
||||
=cut
|
||||
|
||||
|
@ -87,7 +87,7 @@ sub value
|
|||
my %VMinfo;
|
||||
|
||||
# --- Fetch VM info ---
|
||||
foreach my $count (0..12)
|
||||
foreach my $count (0..12)
|
||||
{
|
||||
#
|
||||
# The values are counters that increment each second, here we
|
||||
|
@ -97,16 +97,16 @@ sub value
|
|||
foreach my $var ("swap_avail","swap_alloc","swap_free")
|
||||
{
|
||||
$VMnow{$var} = $Kstat->{unix}->{0}->{vminfo}->{$var};
|
||||
unless ($count)
|
||||
unless ($count)
|
||||
{
|
||||
$VMold{$var} = $VMnow{$var};
|
||||
next;
|
||||
}
|
||||
if (($VMnow{$var} != $VMold{$var}) && (! $VMinfo{$var}))
|
||||
if (($VMnow{$var} != $VMold{$var}) && (! $VMinfo{$var}))
|
||||
{
|
||||
$VMinfo{$var} = $VMnow{$var} - $VMold{$var};
|
||||
}
|
||||
}
|
||||
}
|
||||
select(undef, undef, undef, 0.1);
|
||||
$Kstat->update();
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ sub config
|
|||
"Unalloc ",
|
||||
"Avail ",
|
||||
"\n";
|
||||
|
||||
|
||||
print "Alloc.label Alloc \n";
|
||||
print "Alloc.draw \n";
|
||||
print "Alloc.info Swap used.\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue