From 2d0cbf562ed19b4d68dd4d7325d912d104ed71aa Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Wed, 5 Aug 2009 21:58:04 +0200 Subject: [PATCH] Fixed the weather widget, wind km/h was broken. --- weather.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/weather.lua b/weather.lua index c8dd5ac..9e2424a 100644 --- a/weather.lua +++ b/weather.lua @@ -65,10 +65,11 @@ function worker(format, station) string.match(ws, "Relative[%s]Humidity:[%s]([%d]+)%%") or weather["{humid}"] weather["{press}"] = -- Pressure in hPa string.match(ws, "Pressure[%s].+%((.+)[%s]hPa%)") or weather["{press}"] - weather["{windkmh}"] = -- Wind speed in KMH if MPH was available - if weather["{windmph}"] ~= "N/A" then - weather["{windkmh}"] = math.floor(weather["{windmph}"] * 1.6) - end + + -- Wind speed in KMH if MPH was available + if weather["{windmph}"] ~= "N/A" then + weather["{windkmh}"] = math.floor(weather["{windmph}"] * 1.6) + end end return weather