Skip to content

Commit

Permalink
Don't generate bogus "psent=1, precvd=0" stat when no packets
Browse files Browse the repository at this point in the history
have been seen on that session.
  • Loading branch information
sobomax committed Apr 13, 2015
1 parent 5e5b739 commit cd4bd49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rtp_analyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ void
update_rtpp_totals(struct rtpp_session_stat *stat)
{

if (stat->last.pcount == 0)
return;
stat->psent += stat->last.max_seq - stat->last.min_seq + 1;
stat->precvd += stat->last.pcount;
}

0 comments on commit cd4bd49

Please sign in to comment.