added more details about nginx build to the stat page

This commit is contained in:
Roman Arutyunyan 2012-06-05 14:55:25 +04:00
parent 5ced4aea88
commit 613e7072c1
2 changed files with 7 additions and 1 deletions

View file

@ -3,6 +3,7 @@
*/
#include <nginx.h>
#include <ngx_http.h>
#include "ngx_rtmp.h"
@ -399,6 +400,10 @@ ngx_rtmp_stat_handler(ngx_http_request_t *r)
NGX_RTMP_STAT_L("<rtmp>\r\n");
NGX_RTMP_STAT_L("<version>" NGINX_VERSION "</version>\r\n");
NGX_RTMP_STAT_L("<compiler>" NGX_COMPILER "</compiler>\r\n");
NGX_RTMP_STAT_L("<built>" __DATE__ " " __TIME__ "</built>\r\n");
ngx_rtmp_stat_bw(r, lll, &ngx_rtmp_bw_in, &ngx_rtmp_bw_out);
cscf = cmcf->servers.elts;

View file

@ -11,7 +11,8 @@
<body>
<xsl:apply-templates select="rtmp"/>
<hr/>
Generated by <a href='https://github.com/arut/nginx-rtmp-module'>NGINX RTMP module</a>
Generated by <a href='https://github.com/arut/nginx-rtmp-module'>NGINX RTMP module</a><br/>
<a href="http://nginx.com">NGINX</a>&#160;<xsl:value-of select="/rtmp/version"/>,&#160;<xsl:value-of select="/rtmp/built"/>,&#160; <xsl:value-of select="/rtmp/compiler"/>
</body>
</html>
</xsl:template>