mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 10:23:46 +01:00
Added fahrenheit to celsius conversion
This commit is contained in:
parent
c0ce018356
commit
d7f9474ed6
@ -14,6 +14,7 @@ use vars qw/ %opt /;
|
|||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
sub getmasked_values ($$);
|
sub getmasked_values ($$);
|
||||||
|
sub f2c ($);
|
||||||
|
|
||||||
if ($ARGV[0] =~ /(--help|-h|help)/ || !defined$ARGV[0]) {
|
if ($ARGV[0] =~ /(--help|-h|help)/ || !defined$ARGV[0]) {
|
||||||
&usage;
|
&usage;
|
||||||
@ -417,6 +418,12 @@ APC ACRC In-Row
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub f2c($) {
|
||||||
|
my $f = shift;
|
||||||
|
|
||||||
|
return ($f - 32) * (5/9);
|
||||||
|
}
|
||||||
|
|
||||||
sub getmasked_values ($$) {
|
sub getmasked_values ($$) {
|
||||||
my ($baseoid, $values) = @_;
|
my ($baseoid, $values) = @_;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user