Fixed Wind Chill in Kelvin

This commit is contained in:
Shameer Ashraf 2018-06-29 01:00:20 -04:00
parent f4910f0a8e
commit 34e5f29419

View File

@ -417,7 +417,7 @@ Module.register("currentweather",{
case "imperial": this.feelsLike = windChillInF.toFixed(0); case "imperial": this.feelsLike = windChillInF.toFixed(0);
break; break;
case "default": case "default":
var tc = windChillInC - 273.15; var tc = windChillInC + 273.15;
this.feelsLike = tc.toFixed(0); this.feelsLike = tc.toFixed(0);
break; break;
} }