From e29eeb7439009f11ac96873c2c36a1e13bdaffbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20VAR=C3=88NE?= Date: Thu, 5 Sep 2024 12:25:17 +0200 Subject: [PATCH] acars: report loud messages (above 0dB) --- acars.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acars.c b/acars.c index 8d7aa6d..4b0528d 100644 --- a/acars.c +++ b/acars.c @@ -132,8 +132,11 @@ static void *blk_thread(void *arg) vprerr("get message #%d\n", chn+1); - if (R.statsd) + if (R.statsd) { statsd_inc_per_channel(chn, "decoder.msg.count"); + if (blk->lvl > 1.0F) // > 0dB + statsd_inc_per_channel(chn, "decoder.msg.loud"); + } /* handle message */ if (blk->txtlen < TXTMINLEN) {