summaryrefslogtreecommitdiff
path: root/src/noprml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2017-01-06 21:49:35 (GMT)
committerChristian Pointner <equinox@helsinki.at>2017-01-06 21:49:35 (GMT)
commit52680074ae2143b5d92e1c99c36a53d4a9c01471 (patch)
treeae2251bd6bc8ee0acfec05d2e50efc69188755b1 /src/noprml
parentdf67f85aafb91466bcd63681ebf4f6d9b3b6e8be (diff)
fix last cart check
Diffstat (limited to 'src/noprml')
-rwxr-xr-xsrc/noprml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/noprml b/src/noprml
index 596b2f6..16171d4 100755
--- a/src/noprml
+++ b/src/noprml
@@ -35,7 +35,7 @@ local s, ns = assert(string.match(time, "([0-9]+) ([0-9]+)"))
local timestamp = s .. string.format("%06d", math.floor(ns/1000))
-- check arguments
-if #arg < 4 then
+if #arg < 5 then
io.stderr:write("too few parameters\n")
os.exit(1)
end
@@ -55,7 +55,7 @@ if q == nil then
end
-- send out message to nopfetchd
-local result, err = mq.send(q, timestamp .. " " .. arg[1] .. " " .. arg[2] .. " " .. arg[3] .. " " .. arg[4], 0)
+local result, err = mq.send(q, timestamp .. " " .. arg[1] .. " " .. arg[2] .. " " .. arg[3] .. " " .. arg[4] .. " " .. arg[5], 0)
if result == nil then
io.stderr:write("sending message failed: " .. err .. "\n")
os.exit(2)