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