diff options
author | Christian Pointner <equinox@helsinki.at> | 2017-01-06 21:49:35 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2017-01-06 21:49:35 (GMT) |
commit | 52680074ae2143b5d92e1c99c36a53d4a9c01471 (patch) | |
tree | ae2251bd6bc8ee0acfec05d2e50efc69188755b1 /src/noprml | |
parent | df67f85aafb91466bcd63681ebf4f6d9b3b6e8be (diff) |
fix last cart check
Diffstat (limited to 'src/noprml')
-rwxr-xr-x | src/noprml | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |