summaryrefslogtreecommitdiff
path: root/src/noprml
diff options
context:
space:
mode:
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)