diff --git a/ngx_rtmp_stat_module.c b/ngx_rtmp_stat_module.c index 9ea8995..770cd10 100644 --- a/ngx_rtmp_stat_module.c +++ b/ngx_rtmp_stat_module.c @@ -348,16 +348,20 @@ ngx_rtmp_stat_live(ngx_http_request_t *r, ngx_chain_t ***lll, NGX_RTMP_STAT_L(""); NGX_RTMP_STAT_L(""); - NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf), - "%uz", ctx->ndropped) - buf); - NGX_RTMP_STAT_L(""); - - NGX_RTMP_STAT_L(""); - + /*NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf), + "%uz", ctx->ndropped) - buf);*/ NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf), "%uD/%uD", ctx->cs[1].dropped, ctx->cs[0].dropped) - buf); + NGX_RTMP_STAT_L(""); + NGX_RTMP_STAT_L(""); + if (!lacf->interleave) { + NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf), + "%L", (int64_t) ctx->cs[1].timestamp - + (int64_t) ctx->cs[0].timestamp) + - buf); + } NGX_RTMP_STAT_L(""); if (s->flashver.len) {