diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-05 21:58:04 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-05 21:58:04 +0200 |
commit | 2d0cbf562ed19b4d68dd4d7325d912d104ed71aa (patch) | |
tree | 7109bea6b8c645d668f1c343ffd838ca25042f0e /weather.lua | |
parent | 4c74de711f564d26ebefef7f9422289bd76ef8c2 (diff) | |
download | vicious-legacy-2d0cbf562ed19b4d68dd4d7325d912d104ed71aa.tar.xz |
Fixed the weather widget, wind km/h was broken.
Diffstat (limited to 'weather.lua')
-rw-r--r-- | weather.lua | 9 |
1 files 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 |