mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-10 11:58:08 +00:00
Make this actually evaluate how it was intended to be.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@128198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2646,13 +2646,13 @@ unsigned int ast_rtp_get_qosvalue(struct ast_rtp *rtp, enum ast_rtp_qos_vars val
|
|||||||
case AST_RTP_TXJITTER:
|
case AST_RTP_TXJITTER:
|
||||||
return (unsigned int) (rtp->rxjitter * 100.0);
|
return (unsigned int) (rtp->rxjitter * 100.0);
|
||||||
case AST_RTP_RXJITTER:
|
case AST_RTP_RXJITTER:
|
||||||
return (unsigned int) rtp->rtcp ? (rtp->rtcp->reported_jitter / (unsigned int) 65536.0) : 0;
|
return (unsigned int) (rtp->rtcp ? (rtp->rtcp->reported_jitter / (unsigned int) 65536.0) : 0);
|
||||||
case AST_RTP_RXPLOSS:
|
case AST_RTP_RXPLOSS:
|
||||||
return rtp->rtcp ? (rtp->rtcp->expected_prior - rtp->rtcp->received_prior) : 0;
|
return rtp->rtcp ? (rtp->rtcp->expected_prior - rtp->rtcp->received_prior) : 0;
|
||||||
case AST_RTP_TXPLOSS:
|
case AST_RTP_TXPLOSS:
|
||||||
return rtp->rtcp ? rtp->rtcp->reported_lost : 0;
|
return rtp->rtcp ? rtp->rtcp->reported_lost : 0;
|
||||||
case AST_RTP_RTT:
|
case AST_RTP_RTT:
|
||||||
return (unsigned int) rtp->rtcp ? rtp->rtcp->rtt * 100 : 0;
|
return (unsigned int) (rtp->rtcp ? (rtp->rtcp->rtt * 100) : 0);
|
||||||
}
|
}
|
||||||
return 0; /* To make the compiler happy */
|
return 0; /* To make the compiler happy */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user