diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-09-08 21:31:36 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-09-08 21:31:36 +0000 |
commit | 1bf69e1d848454958de60d50bd5ad1fffd1f5f4a (patch) | |
tree | 6e3de2b17223349e345ff2177e77a34c6cae909a /pjsip | |
parent | e2d81373ceb10ec4307528c793a79058d2d33d93 (diff) |
Ticket #613: Added packet discard statistic in pjsua 'dq' output
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2266 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_call.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index 71fc8a24..c1d5441c 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -2093,7 +2093,7 @@ static void dump_media_session(const char *indent, len = pj_ansi_snprintf(p, end-p, "%s RX pt=%d, stat last update: %s\n" "%s total %spkt %sB (%sB +IP hdr) @avg=%sbps/%sbps\n" - "%s pkt loss=%d (%3.1f%%), dup=%d (%3.1f%%), reorder=%d (%3.1f%%)\n" + "%s pkt loss=%d (%3.1f%%), discrd=%d (%3.1f%%), dup=%d (%2.1f%%), reord=%d (%3.1f%%)\n" "%s (msec) min avg max last dev\n" "%s loss period: %7.3f %7.3f %7.3f %7.3f %7.3f\n" "%s jitter : %7.3f %7.3f %7.3f %7.3f %7.3f%s", @@ -2108,6 +2108,8 @@ static void dump_media_session(const char *indent, indent, stat.rx.loss, stat.rx.loss * 100.0 / (stat.rx.pkt + stat.rx.loss), + stat.rx.discard, + stat.rx.discard * 100.0 / (stat.rx.pkt + stat.rx.loss), stat.rx.dup, stat.rx.dup * 100.0 / (stat.rx.pkt + stat.rx.loss), stat.rx.reorder, |