Added fahrenheit to celsius conversion

This commit is contained in:
Tomas Edwardsson 2012-10-22 13:21:47 +00:00
parent c0ce018356
commit d7f9474ed6
1 changed files with 7 additions and 0 deletions

View File

@ -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) = @_;