forked from osmocom/wireshark
IAX2 Stream Analysis: Fix of mean jitter calculation
Calculation was using incorrect variable so calculation was incorrect. Patch corrected this mistake.
This commit is contained in:
parent
11298a5b2c
commit
cf41fbd897
|
@ -111,6 +111,8 @@ The following features are new (or have been significantly updated) since versio
|
|||
** Regular expressions (using "matches" or "~") must be specified using character strings. It is a syntax error to omit the double-quotes around
|
||||
the regular expression. Before the syntax rules of an unquoted regex string could be difficult to predict.
|
||||
|
||||
* Corrected calculation of mean jitter in RTP Stream Analysis dialog and IAX2 Stram Analysis dialog
|
||||
|
||||
// === Removed Features and Support
|
||||
|
||||
// === Removed Dissectors
|
||||
|
|
|
@ -99,7 +99,7 @@ iax2_packet_analyse(tap_iax2_stat_t *statinfo,
|
|||
if (statinfo->jitter > statinfo->max_jitter) {
|
||||
statinfo->max_jitter = statinfo->jitter;
|
||||
}
|
||||
statinfo->mean_jitter = (statinfo->mean_jitter*statinfo->total_nr + current_diff) / (statinfo->total_nr+1);
|
||||
statinfo->mean_jitter = (statinfo->mean_jitter*statinfo->total_nr + current_jitter) / (statinfo->total_nr+1);
|
||||
}
|
||||
/* regular payload change? (CN ignored) */
|
||||
if (!(statinfo->flags & STAT_FLAG_FIRST)
|
||||
|
|
Loading…
Reference in New Issue