Affichage maintenant le nombre d'url restant dans la salle d'attente

This commit is contained in:
Christian Zufferey
2020-06-06 13:48:33 +02:00
parent a7093b2b49
commit 9c887e7242

View File

@@ -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()