]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(closes issue #10562)
authorJoshua Colp <jcolp@digium.com>
Mon, 27 Aug 2007 13:20:31 +0000 (13:20 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 27 Aug 2007 13:20:31 +0000 (13:20 +0000)
Reported by: idkpmiller
Correct jitter value output in the CLI to be as expected.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@80974 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index 4e4bde623ab496507f835c75dc3eb61e7adcbcd7..f4b05857072e9e3c25ec542e795c620596bd5502 100644 (file)
@@ -2093,7 +2093,7 @@ void ast_rtp_destroy(struct ast_rtp *rtp)
                ast_verbose("  SSRC:             %u\n", rtp->ssrc);
                ast_verbose("  Sent packets:     %u\n", rtp->txcount);
                ast_verbose("  Lost packets:     %u\n", rtp->rtcp->reported_lost);
-               ast_verbose("  Jitter:           %u\n", rtp->rtcp->reported_jitter);
+               ast_verbose("  Jitter:           %u\n", rtp->rtcp->reported_jitter / (unsigned int)65536.0);
                ast_verbose("  SR-count:         %u\n", rtp->rtcp->sr_count);
                ast_verbose("  RTT:              %f\n", rtp->rtcp->rtt);
        }