Affichage maintenant le nombre d'url restant dans la salle d'attente
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
-- Petit script pour envoyer en // es valeurs sur un serveur WEB (InfluxDB)
|
||||
-- via un http POST à travers un FIFO
|
||||
|
||||
if verbose then print("\n 0_http_post.lua zf200606.1316 \n") end
|
||||
if verbose then print("\n 0_http_post.lua zf200606.1334 \n") end
|
||||
|
||||
t_zurl={} t_zarg={} f_zpost=false
|
||||
|
||||
@@ -37,8 +37,10 @@ function zpost()
|
||||
end
|
||||
|
||||
function http_post(zurl,zarg)
|
||||
|
||||
table.insert(t_zurl, zurl) table.insert(t_zarg, zarg)
|
||||
if verbose then print("t_zurl:") tprint(t_zurl) print("t_zarg:") tprint(t_zarg) end
|
||||
if verbose then print("Nb wait: "..#t_zurl) print(node.heap()) end
|
||||
if verbose then print("t_zurl:") tprint(t_zurl) print("t_zarg:") tprint(t_zarg) end
|
||||
if f_zpost==false then zpost() end
|
||||
if verbose then print("End http_post:") end
|
||||
collectgarbage()
|
||||
|
||||
Reference in New Issue
Block a user