Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/disk/hp_temp | ||
|---|---|---|
| 77 | 77 |
$name =~ s/\ /_/g; |
| 78 | 78 |
# add the ID to be 100% unique |
| 79 | 79 |
$name .= '_'.$id; |
| 80 |
|
|
| 80 |
|
|
| 81 | 81 |
if ($mode eq 'config') |
| 82 | 82 |
{
|
| 83 | 83 |
# only needed here in config |
| ... | ... | |
| 95 | 95 |
} |
| 96 | 96 |
# calc warning from threshold, 5% less |
| 97 | 97 |
my $warning = sprintf("%.0f", $threshold * 95 / 100);
|
| 98 |
|
|
| 98 |
|
|
| 99 | 99 |
print $name.".label ".$location."\n"; |
| 100 | 100 |
print $name.".warning ".$warning."\n"; |
| 101 | 101 |
print $name.".critical ".$threshold."\n"; |
Formats disponibles : Unified diff