diff --git a/check_apcext.pl/check_apcext.pl b/check_apcext.pl/check_apcext.pl index 9fc254e..72f8306 100755 --- a/check_apcext.pl/check_apcext.pl +++ b/check_apcext.pl/check_apcext.pl @@ -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) = @_;