diff --git a/src/decode.c b/src/decode.c index 7b7e631..0df39f5 100644 --- a/src/decode.c +++ b/src/decode.c @@ -366,6 +366,9 @@ void decode_vdl2_burst(vdl2_channel_t *v) { goto cleanup; } statsd_timing_delta_per_channel(v->freq, "decoder.msg.processing_time", v->tstart); + if(v->frame_pwr > 1.0F) { // check for log(v->frame_power) > 0dBFs + statsd_increment_per_channel(v->freq, "decoder.msg.good_loud"); + } cleanup: XFREE(data); XFREE(fec); diff --git a/src/statsd.c b/src/statsd.c index 86dc765..ca276b9 100644 --- a/src/statsd.c +++ b/src/statsd.c @@ -58,6 +58,7 @@ static char const *counters_per_channel[] = { "decoder.errors.truncated_octets", "decoder.errors.unstuff", "decoder.msg.good", + "decoder.msg.good_loud", "decoder.preambles.good", "demod.sync.good", NULL