aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-05 21:19:41 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-05 21:19:41 +0200
commit2d4efa6893a582a7bc6a15b4840a116c0547b534 (patch)
tree56fd5a086e60dbbec8dada505418bf42c8937875 /init.lua
parent22033bae53409d280782aff375f5ceebeaa83c1e (diff)
downloadvicious-legacy-2d4efa6893a582a7bc6a15b4840a116c0547b534.tar.xz
Minor cleanup in init.lua
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 10aaddc..7828434 100644
--- a/init.lua
+++ b/init.lua
@@ -105,7 +105,7 @@ function register(widget, wtype, format, timer, field, padd)
update(widget, reg)
end
- -- Default to timer=1
+ -- Default to 1s timer
if reg.timer == nil then
reg.timer = 1
end
@@ -240,7 +240,7 @@ function update(widget, reg, disablecache)
if widget_cache[reg.type] ~= nil then
local c = widget_cache[reg.type]
- if c.time == nil or c.time <= t-reg.timer or disablecache then
+ if c.time == nil or c.time <= t - reg.timer or disablecache then
c.time = t
c.data = reg.type(reg.format, reg.padd)
end