Skip to content

Commit

Permalink
acars: report loud messages (above 0dB)
Browse files Browse the repository at this point in the history
  • Loading branch information
f00b4r0 committed Sep 11, 2024
1 parent a921698 commit 4ef656a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acars.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4ef656a

Please sign in to comment.