diff --git a/include/re_jbuf.h b/include/re_jbuf.h index 71f8703ca..902924c18 100644 --- a/include/re_jbuf.h +++ b/include/re_jbuf.h @@ -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 */ }; diff --git a/src/jbuf/jbuf.c b/src/jbuf/jbuf.c index 2064fbff0..a338980ff 100644 --- a/src/jbuf/jbuf.c +++ b/src/jbuf/jbuf.c @@ -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; @@ -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);