1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

cosmetic fixes

This commit is contained in:
Antoine Beaupré 2014-01-02 18:47:52 -05:00
parent c2214999c3
commit ade1481717

View file

@ -88,9 +88,10 @@ sub print_graph_data() {
my $threads = get_thread_list(); my $threads = get_thread_list();
my %counts = (); my %counts = ();
my ($thread, $user, $count); my ($thread, $user, $count);
while (($thread, $user) = each %$threads) { while (($thread, $user) = each %$threads) {
$counts{$user} = 0 unless defined($counts{$user}); $counts{$user} = 0 unless defined($counts{$user});
$counts{$user} += 1; $counts{$user}++;
} }
sub valsort { sub valsort {
@ -103,7 +104,6 @@ sub print_graph_data() {
} }
} }
sub poll_variables { sub poll_variables {
my $command = shift; my $command = shift;
my $expression = shift; my $expression = shift;