diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-13 03:39:54 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-13 03:39:54 +0100 |
commit | febc91dda5fe6ceff8ca519d3ac2b98584912e6a (patch) | |
tree | cb6fb2e5a582c35e40fe4a6ac7274961b12293ac /org.lua | |
parent | 9338cb930bccb4f4e7352d308a448adabde54331 (diff) | |
download | vicious-legacy-febc91dda5fe6ceff8ca519d3ac2b98584912e6a.tar.xz |
hddtemp: minor style changes
Diffstat (limited to 'org.lua')
-rw-r--r-- | org.lua | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -40,16 +40,12 @@ local function worker(format, warg) local b, e, y, m, d = string.find(line, "(%d%d%d%d)-(%d%d)-(%d%d)") if b then - local t = os.time{ year = y, month = m, day = d } - - if t < today then - count.past = count.past + 1 - elseif t == today then - count.today = count.today + 1 - elseif t <= soon then - count.soon = count.soon + 1 - elseif t <= future then - count.future = count.future + 1 + local t = os.time{ year = y, month = m, day = d } + + if t < today then count.past = count.past + 1 + elseif t == today then count.today = count.today + 1 + elseif t <= soon then count.soon = count.soon + 1 + elseif t <= future then count.future = count.future + 1 end end end |