aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mboxc.lua6
-rw-r--r--org.lua6
2 files changed, 6 insertions, 6 deletions
diff --git a/mboxc.lua b/mboxc.lua
index 1861b15..e9aa84f 100644
--- a/mboxc.lua
+++ b/mboxc.lua
@@ -15,13 +15,13 @@ module("vicious.mboxc")
-- {{{ Mbox count widget type
-local function worker(format, mbox)
+local function worker(format, warg)
-- Initialise counters
local count = { old = 0, total = 0, new = 0 }
-- Get data from mbox files
- for i=1, #mbox do
- local f = io.open(mbox[i])
+ for i=1, #warg do
+ local f = io.open(warg[i])
while true do
-- Read the mbox line by line, if we are going to read some
diff --git a/org.lua b/org.lua
index ea50db9..c80cd15 100644
--- a/org.lua
+++ b/org.lua
@@ -20,7 +20,7 @@ module("vicious.org")
-- {{{ OrgMode widget type
-local function worker(format, files)
+local function worker(format, warg)
-- Compute delays
local today = os.time{ year=os.date("%Y"), month=os.date("%m"), day=os.date("%d") }
local soon = today + 24 * 3600 * 3 -- 3 days ahead is close
@@ -30,8 +30,8 @@ local function worker(format, files)
local count = { past = 0, today = 0, soon = 0, future = 0 }
-- Get data from agenda files
- for i=1, #files do
- local f = io.open(files[i])
+ for i=1, #warg do
+ local f = io.open(warg[i])
for line in f:lines() do
local scheduled = string.find(line, "SCHEDULED:")