aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/tap-rtp-analysis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/tap-rtp-analysis.c b/ui/tap-rtp-analysis.c
index ff6ca312f2..474761ed04 100644
--- a/ui/tap-rtp-analysis.c
+++ b/ui/tap-rtp-analysis.c
@@ -383,6 +383,10 @@ rtppacket_analyse(tap_rtp_stat_t *statinfo,
statinfo->sumTS += 1.0 * nominaltime;
statinfo->sumt2 += 1.0 * current_time * current_time;
statinfo->sumtTS += 1.0 * current_time * nominaltime;
+ } else {
+ if (!statinfo->first_packet) {
+ statinfo->delta = current_time-(statinfo->time);
+ }
}
/* Calculate the BW in Kbps adding the IP+UDP header to the RTP -> 20bytes(IP) + 8bytes(UDP) */