Skip to content

Commit

Permalink
jbuf: rename n_underflow to n_waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Sep 28, 2023
1 parent 2b08fb9 commit a15575e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/re_jbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct jbuf_stat {
uint32_t n_late; /**< Number of frames arriving too late */
uint32_t n_lost; /**< Number of lost frames */
uint32_t n_overflow; /**< Number of overflows */
uint32_t n_underflow; /**< Number of underflows */
uint32_t n_waiting; /**< Number of read waiting */
uint32_t n_flush; /**< Number of times jitter buffer flushed */
};

Expand Down
4 changes: 2 additions & 2 deletions src/jbuf/jbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ int jbuf_get(struct jbuf *jb, struct rtp_header *hdr, void **mem)
if (!jbuf_frame_ready(jb)) {
DEBUG_INFO("no frame ready - wait.. "
"(nf=%u min=%u)\n", jb->nf, jb->min);
STAT_INC(n_underflow);
STAT_INC(n_waiting);
plot_jbuf_event(jb, 'U');
err = ENOENT;
goto out;
Expand Down Expand Up @@ -759,7 +759,7 @@ int jbuf_debug(struct re_printf *pf, const struct jbuf *jb)
err |= mbuf_printf(mb, " dup=%u", jb->stat.n_dups);
err |= mbuf_printf(mb, " late=%u", jb->stat.n_late);
err |= mbuf_printf(mb, " or=%u", jb->stat.n_overflow);
err |= mbuf_printf(mb, " ur=%u", jb->stat.n_underflow);
err |= mbuf_printf(mb, " wait=%u", jb->stat.n_waiting);
err |= mbuf_printf(mb, " flush=%u", jb->stat.n_flush);
err |= mbuf_printf(mb, " put/get_ratio=%u%%", jb->stat.n_get ?
100*jb->stat.n_put/jb->stat.n_get : 0);
Expand Down

0 comments on commit a15575e

Please sign in to comment.