Fix windspeed convertion error in ukmetoffice weather provider

Fix windspeed convertion error from mph to m/s in ukmetoffice weather provider (#2189)
This commit is contained in:
Aurélien Veillard
2020-11-08 12:37:21 +01:00
parent 3220702034
commit 0d6f736c2c
2 changed files with 3 additions and 2 deletions

View File

@@ -208,10 +208,10 @@ WeatherProvider.register("ukmetoffice", {
},
/*
* Convert wind speed (from mph) if required
* Convert wind speed (from mph to m/s) if required
*/
convertWindSpeed(windInMph) {
return this.windUnits === "metric" ? windInMph * 2.23694 : windInMph;
return this.windUnits === "metric" ? windInMph / 2.23694 : windInMph;
},
/*