From: drowe67 Date: Tue, 17 Jan 2017 00:17:36 +0000 (+0000) Subject: output stats after each frame, useful for streaming operation X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=0d37a67b10ab6eff4b1c6be3cbbd077a3d779d13;p=freetel-svn-tracking.git output stats after each frame, useful for streaming operation git-svn-id: https://svn.code.sf.net/p/freetel/code@2980 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/fsk_put_test_bits.c b/codec2-dev/src/fsk_put_test_bits.c index f7e2273e..4151b934 100644 --- a/codec2-dev/src/fsk_put_test_bits.c +++ b/codec2-dev/src/fsk_put_test_bits.c @@ -91,11 +91,11 @@ int main(int argc,char *argv[]){ /* OK, we have a valid test frame sync, so lets count errors */ bitcnt += TEST_FRAME_SIZE; biterr += errs; + fprintf(stderr,"errs: %d FSK BER %f, bits tested %d, bit errors %d\n", + errs, ((float)biterr/(float)bitcnt),bitcnt,biterr); } } - fprintf(stderr,"FSK BER %f, bits tested %d, bit errors %d\n", - ((float)biterr/(float)bitcnt),bitcnt,biterr); cleanup: fclose(fin);