diff options
author | Liong Sauw Ming <ming@teluu.com> | 2015-01-23 04:00:34 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2015-01-23 04:00:34 +0000 |
commit | cc4da592c9cd7c7ac1acf8b5baade5cf148d5cc5 (patch) | |
tree | f038d47be7420b49718c94585ed54ec8bf76bcd9 /pjsip | |
parent | e97419fb349a35c917455608216745e3ec94b897 (diff) |
Re #1782 (misc): Fixed inaccurate TX packet loss percentage and stats calculation.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4977 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_dump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_dump.c b/pjsip/src/pjsua-lib/pjsua_dump.c index 8fbe8c49..d9abbb7d 100644 --- a/pjsip/src/pjsua-lib/pjsua_dump.c +++ b/pjsip/src/pjsua-lib/pjsua_dump.c @@ -166,11 +166,11 @@ static unsigned dump_media_stat(const char *indent, indent, stat->tx.loss, - (stat->tx.loss? stat->tx.loss * 100.0 / (stat->tx.pkt + stat->tx.loss) : 0), + (stat->tx.loss? stat->tx.loss * 100.0 / stat->tx.pkt : 0), stat->tx.dup, - (stat->tx.dup? stat->tx.dup * 100.0 / (stat->tx.pkt + stat->tx.loss) : 0), + (stat->tx.dup? stat->tx.dup * 100.0 / stat->tx.pkt : 0), stat->tx.reorder, - (stat->tx.reorder? stat->tx.reorder * 100.0 / (stat->tx.pkt + stat->tx.loss) : 0), + (stat->tx.reorder? stat->tx.reorder * 100.0 / stat->tx.pkt : 0), indent, indent, stat->tx.loss_period.min / 1000.0, |