From d169dd94ec725f6a0054c82c7ffef46e51e659cc Mon Sep 17 00:00:00 2001 From: David Peer Date: Wed, 29 Jun 2022 19:43:15 +0200 Subject: [PATCH] Minor improvement --- apps/bwclk/app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/bwclk/app.js b/apps/bwclk/app.js index 241b4b01a..5b9244a54 100644 --- a/apps/bwclk/app.js +++ b/apps/bwclk/app.js @@ -287,8 +287,7 @@ function getWeather(){ // Wind const wind = locale.speed(weather.wind).match(/^(\D*\d*)(.*)$/); - var speedFactor = settings.speed == "kph" ? 1.0 : 1.0 / 1.60934; - weather.wind = Math.round(wind[1] * speedFactor); + weather.wind = Math.round(wind[1]) + "kph"; return weather