added AV-sync stat field

This commit is contained in:
Roman Arutyunyan 2012-06-11 23:38:14 +04:00
parent 6143abc418
commit 4eda3e8392
2 changed files with 8 additions and 0 deletions

View file

@ -280,6 +280,12 @@ ngx_rtmp_stat_live(ngx_http_request_t *r, ngx_chain_t ***lll,
"%uz", ctx->dropped) - buf);
NGX_RTMP_STAT_L("</dropped>");
NGX_RTMP_STAT_L("<avsync>");
NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf),
"%L", (int64_t)ctx->last_audio
- ctx->last_video) - buf);
NGX_RTMP_STAT_L("</avsync>");
if (s->flashver.len) {
NGX_RTMP_STAT_L("<flashver>");
NGX_RTMP_STAT_ES(&s->flashver);

View file

@ -113,6 +113,7 @@
<th>Flash version</th>
<th>Page URL</th>
<th>Dropped</th>
<th>A-V</th>
<th>Time</th>
</tr>
<xsl:apply-templates select="client"/>
@ -158,6 +159,7 @@
</a>
</td>
<td><xsl:value-of select="dropped"/></td>
<td><xsl:value-of select="avsync"/></td>
<td>
<xsl:call-template name="showtime">
<xsl:with-param name="time" select="time"/>