From 77e70aaad5a91c529b1765e2434082ce7d1c69a8 Mon Sep 17 00:00:00 2001 From: pitchum Date: Wed, 24 Mar 2021 09:28:39 +0100 Subject: [PATCH] Fix the counting of captchas --- metrology/collectd_exec_xmpp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrology/collectd_exec_xmpp.sh b/metrology/collectd_exec_xmpp.sh index 6ce0d5d..7e8afb4 100755 --- a/metrology/collectd_exec_xmpp.sh +++ b/metrology/collectd_exec_xmpp.sh @@ -35,7 +35,7 @@ http_upload_disk_usage() { } captcha_stats() { - echo "PUTVAL \"${HOSTNAME}/xmpp_captcha_lastday/count\" interval=$INTERVAL $(date +%s):$(find /var/lib/ejabberd/chapril_captchas/ -mindepth 1 -maxdepth 1 -type f -mtime 1 | grep -v EXPERIMENTAL | wc -l)" + echo "PUTVAL \"${HOSTNAME}/xmpp_captcha_lastday/count\" interval=$INTERVAL $(date +%s):$(find /var/lib/ejabberd/chapril_captchas/ -mindepth 1 -maxdepth 1 -type f -mtime -1 | grep -v EXPERIMENTAL | wc -l)" } # XXX la syntaxe de la boucle while ci-dessous fait échouer le démarrage de collectd.