summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-04-06 21:01:25 +0000
committerBenny Prijono <bennylp@teluu.com>2006-04-06 21:01:25 +0000
commita471dc4d123d73e09e32aa79ab892e0106f5248f (patch)
treee383fdba7ce27bc083da485465adb9e0d4cfbbb1
parent46447c0474671d4ad002419d4759c4d95fe1ce50 (diff)
Beautify screen output of the siprtp sample
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@392 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip-apps/src/samples/siprtp.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/pjsip-apps/src/samples/siprtp.c b/pjsip-apps/src/samples/siprtp.c
index 387b4571..0f8727ae 100644
--- a/pjsip-apps/src/samples/siprtp.c
+++ b/pjsip-apps/src/samples/siprtp.c
@@ -1421,8 +1421,9 @@ static void print_call(int call_index)
printf(" RX stat last update: %s\n"
" total %s packets %sB received (%sB +IP hdr)%s\n"
" pkt loss=%d (%3.1f%%), dup=%d (%3.1f%%), reorder=%d (%3.1f%%)%s\n"
- " loss period min=%5.3fms, avg=%5.3fms, max=%5.3fms, last=%5.3f%s\n"
- " jitter min=%5.3fms, avg=%5.3fms, max=%5.3fms, last=%5.3fms%s\n",
+ " (msec) min avg max last\n"
+ " loss period: %7.3f %7.3f %7.3f %7.3f%s\n"
+ " jitter : %7.3f %7.3f %7.3f %7.3f%s\n",
last_update,
good_number(packets, audio->rtcp.stat.rx.pkt),
good_number(bytes, audio->rtcp.stat.rx.bytes),
@@ -1463,8 +1464,9 @@ static void print_call(int call_index)
printf(" TX stat last update: %s\n"
" total %s packets %sB received (%sB +IP hdr)%s\n"
" pkt loss=%d (%3.1f%%), dup=%d (%3.1f%%), reorder=%d (%3.1f%%)%s\n"
- " loss period min=%5.3fms, avg=%5.3fms, max=%5.3fms, last=%5.3f%s\n"
- " jitter min=%5.3fms, avg=%5.3fms, max=%5.3fms, last=%5.3fms%s\n",
+ " (msec) min avg max last\n"
+ " loss period: %7.3f %7.3f %7.3f %7.3f%s\n"
+ " jitter : %7.3f %7.3f %7.3f %7.3f%s\n",
last_update,
good_number(packets, audio->rtcp.stat.tx.pkt),
good_number(bytes, audio->rtcp.stat.tx.bytes),
@@ -1490,7 +1492,7 @@ static void print_call(int call_index)
);
- printf(" RTT min=%5.3fms, avg=%5.3fms, max=%5.3fms, last=%5.3fms%s\n",
+ printf(" RTT msec : %7.3f %7.3f %7.3f %7.3f%s\n",
audio->rtcp.stat.rtt.min / 1000.0,
audio->rtcp.stat.rtt.avg / 1000.0,
audio->rtcp.stat.rtt.max / 1000.0,