mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 18:07:20 +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
|
@ -114,7 +114,7 @@ my $irq_types =
|
|||
'sirq' => 'Software interrupts'
|
||||
};
|
||||
|
||||
my $irq_descriptions =
|
||||
my $irq_descriptions =
|
||||
{
|
||||
'HI' => 'High priority tasklets',
|
||||
'TIMER' => 'Timer bottom half',
|
||||
|
@ -127,7 +127,7 @@ my $irq_descriptions =
|
|||
# ----------------- main ----------------
|
||||
need_multigraph();
|
||||
# -- autoconf --
|
||||
if (defined($ARGV[0]) and ($ARGV[0] eq 'autoconf'))
|
||||
if (defined($ARGV[0]) and ($ARGV[0] eq 'autoconf'))
|
||||
{
|
||||
printf("%s\n", (-e "/proc/interrupts" and -e "/proc/softirqs") ? "yes" : "no (stats not exists)");
|
||||
exit (0);
|
||||
|
@ -309,15 +309,15 @@ sub prepare_graphs
|
|||
$gr->{'irq'}{'fields'}{$down_field_name}{'type'} = $fields->{'irq_sirq'}{'type'};
|
||||
$gr->{'irq'}{'fields'}{$up_field_name}{'draw'} = $fields->{'irq_sirq'}{'draw'};
|
||||
$gr->{'irq'}{'fields'}{$down_field_name}{'draw'} = $fields->{'irq_sirq'}{'draw'};
|
||||
|
||||
|
||||
$gr->{'irq'}{'fields'}{$up_field_name}{'label'} = replace($fields->{'irq_sirq'}{'label'}, ':cpu:', $i);
|
||||
$gr->{'irq'}{'fields'}{$up_field_name}{'info'} = replace($fields->{'irq_sirq'}{'info'} , ':cpu:', $i);
|
||||
$gr->{'irq'}{'fields'}{$down_field_name}{'label'} = 'NaN';
|
||||
$gr->{'irq'}{'fields'}{$down_field_name}{'info'} = 'NaN';
|
||||
|
||||
|
||||
$gr->{'irq'}{'fields'}{$up_field_name}{'negative'} = $down_field_name;
|
||||
$gr->{'irq'}{'fields'}{$down_field_name}{'graph'} = 'no';
|
||||
|
||||
|
||||
# --- child graphs ---
|
||||
for my $irq_type (qw(irq sirq))
|
||||
{
|
||||
|
@ -335,7 +335,7 @@ sub prepare_graphs
|
|||
my @irq_names = keys %{$IRQi->{'stat'}{$irq_type}{$i}};
|
||||
# names split for better sorting
|
||||
for my $irq_name ((
|
||||
(sort {int $a <=> int $b} grep{/^\d/} @irq_names),
|
||||
(sort {int $a <=> int $b} grep{/^\d/} @irq_names),
|
||||
(sort grep{!/(^\d|ERR|MIS)/} @irq_names),
|
||||
(sort grep{/(ERR|MIS)/ } @irq_names)
|
||||
))
|
||||
|
@ -347,7 +347,7 @@ sub prepare_graphs
|
|||
{
|
||||
$gr->{$graph_name}{'fields'}{$field_name}{$fo} = replace($fields->{'irq'}{$fo}, ':irq:', $irq_name);
|
||||
$gr->{$graph_name}{'fields'}{$field_name}{$fo} = replace($gr->{$graph_name}{'fields'}{$field_name}{$fo},
|
||||
':irqinfo:',
|
||||
':irqinfo:',
|
||||
exists($IRQi->{'description'}{$irq_type}{$irq_name}) ?
|
||||
$IRQi->{'description'}{$irq_type}{$irq_name} :
|
||||
'');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue