diff --git a/pjsip-apps/src/samples/siprtp.c b/pjsip-apps/src/samples/siprtp.c index 825b2c9bd4..bc8dc8b3bf 100644 --- a/pjsip-apps/src/samples/siprtp.c +++ b/pjsip-apps/src/samples/siprtp.c @@ -1789,9 +1789,9 @@ static void print_avg_stat(void) min_stat.tx.loss, avg_stat.tx.loss, max_stat.tx.loss, "packets", - min_stat.tx.loss*100.0/(min_stat.tx.pkt+min_stat.tx.loss), - avg_stat.tx.loss*100.0/(avg_stat.tx.pkt+avg_stat.tx.loss), - max_stat.tx.loss*100.0/(max_stat.tx.pkt+max_stat.tx.loss), + min_stat.tx.loss*100.0/(min_stat.tx.pkt), + avg_stat.tx.loss*100.0/(avg_stat.tx.pkt), + max_stat.tx.loss*100.0/(max_stat.tx.pkt), "%", min_stat.tx.dup, avg_stat.tx.dup, max_stat.tx.dup, diff --git a/pjsip-apps/src/samples/siprtp_report.c b/pjsip-apps/src/samples/siprtp_report.c index b649738aec..0f0b789e8d 100644 --- a/pjsip-apps/src/samples/siprtp_report.c +++ b/pjsip-apps/src/samples/siprtp_report.c @@ -203,11 +203,11 @@ static void print_call(int call_index) good_number(ipbytes, sizeof(ipbytes), audio->rtcp.stat.tx.bytes + audio->rtcp.stat.tx.pkt * 32), "", audio->rtcp.stat.tx.loss, - audio->rtcp.stat.tx.loss * 100.0 / (audio->rtcp.stat.tx.pkt + audio->rtcp.stat.tx.loss), + audio->rtcp.stat.tx.loss * 100.0 / (audio->rtcp.stat.tx.pkt), audio->rtcp.stat.tx.dup, - audio->rtcp.stat.tx.dup * 100.0 / (audio->rtcp.stat.tx.pkt + audio->rtcp.stat.tx.loss), + audio->rtcp.stat.tx.dup * 100.0 / (audio->rtcp.stat.tx.pkt), audio->rtcp.stat.tx.reorder, - audio->rtcp.stat.tx.reorder * 100.0 / (audio->rtcp.stat.tx.pkt + audio->rtcp.stat.tx.loss), + audio->rtcp.stat.tx.reorder * 100.0 / (audio->rtcp.stat.tx.pkt), "", audio->rtcp.stat.tx.loss_period.min / 1000.0, audio->rtcp.stat.tx.loss_period.mean / 1000.0, diff --git a/pjsip-apps/src/samples/streamutil.c b/pjsip-apps/src/samples/streamutil.c index 0aa09e5c61..0a95cba511 100644 --- a/pjsip-apps/src/samples/streamutil.c +++ b/pjsip-apps/src/samples/streamutil.c @@ -1056,11 +1056,11 @@ static void print_stream_stat(pjmedia_stream *stream, good_number(ipbytes, sizeof(ipbytes), stat.tx.bytes + stat.tx.pkt * 32), "", stat.tx.loss, - stat.tx.loss * 100.0 / (stat.tx.pkt + stat.tx.loss), + stat.tx.loss * 100.0 / (stat.tx.pkt), stat.tx.dup, - stat.tx.dup * 100.0 / (stat.tx.pkt + stat.tx.loss), + stat.tx.dup * 100.0 / (stat.tx.pkt), stat.tx.reorder, - stat.tx.reorder * 100.0 / (stat.tx.pkt + stat.tx.loss), + stat.tx.reorder * 100.0 / (stat.tx.pkt), "", stat.tx.loss_period.min / 1000.0, stat.tx.loss_period.mean / 1000.0,