Skip to content

Commit

Permalink
Convert the result too.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Aug 9, 2016
1 parent 9927d58 commit 401aab8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ protected function _parse(array $data)
if (isset($pointer['wind'])) {
// Now calculate windchill from temperature and windspeed
// Note these must be in F and MPH.
$pointer['feltTemperature'] = Horde_Service_Weather::calculateWindChill($temp_f, $wind_mph);
$pointer['feltTemperature'] = Horde_Service_Weather::convertTemperature(
Horde_Service_Weather::calculateWindChill($temp_f, $wind_mph),
'f',
$this->_unitMap[self::UNIT_KEY_TEMP]
);
}
break;
case 'pressure':
Expand Down

0 comments on commit 401aab8

Please sign in to comment.