23
2
Fork 0

Fix the counting of captchas

This commit is contained in:
pitchum 2021-03-24 09:28:39 +01:00 committed by root
parent 32809974da
commit 77e70aaad5
1 changed files with 1 additions and 1 deletions

View File

@ -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.