Skip to content

Commit

Permalink
jbuf: update trace data
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Sep 27, 2023
1 parent 9c3d5e6 commit ea40cf9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/jbuf/jbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ struct jbuf {
uint64_t tr; /**< Time of previous jbuf_put() */
int pt; /**< Payload type */
bool running; /**< Jitter buffer is running */
int32_t rdiff; /**< Average out of order reverse diff */
struct tmr tmr; /**< Rdiff down timer */

mtx_t *lock; /**< Makes jitter buffer thread safe */
Expand Down Expand Up @@ -136,7 +135,6 @@ static inline bool seq_less(uint16_t x, uint16_t y)
static void plot_jbuf(struct jbuf *jb, uint64_t tr)
{
uint32_t treal;
uint32_t rdiff = (uint32_t)(jb->rdiff / (float)JBUF_RDIFF_EMA_COEFF);

if (!jb->tr00)
jb->tr00 = tr;
Expand All @@ -147,10 +145,9 @@ static void plot_jbuf(struct jbuf *jb, uint64_t tr)
__func__, /* row 1 - grep */
jb, /* row 2 - grep optional */
treal, /* row 3 - plot x-axis */
rdiff, /* row 4 - plot */
jb->wish, /* row 5 - plot */
jb->n, /* row 6 - plot */
jb->nf); /* row 7 - plot */
jb->n, /* row 4 - plot */
jb->nf, /* row 5 - plot */
jb->ncf); /* row 6 - plot */
re_trace_event("jbuf", "plot", 'P', NULL, 0, RE_TRACE_ARG_STRING_COPY,
"line", jb->buf);
}
Expand Down

0 comments on commit ea40cf9

Please sign in to comment.