Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_stub_status_module.c @ 493:975f62e77f02 release-0.1.21
nginx-0.1.21-RELEASE import
*) Bugfix: the ngx_http_stub_status_module showed incorrect statistics
if "rtsig" method was used or if several worker process ran on SMP.
*) Bugfix: nginx could not be built by the icc compiler on Linux or if
the zlib-1.2.x library was building from sources.
*) Bugfix: nginx could not be built on NetBSD 2.0.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 22 Feb 2005 14:40:13 +0000 |
parents | 31ff3e943e16 |
children | fc9909c369b2 |
comparison
equal
deleted
inserted
replaced
492:a3fac9a5aa5b | 493:975f62e77f02 |
---|---|
100 ac = *ngx_stat_active; | 100 ac = *ngx_stat_active; |
101 rq = *ngx_stat_requests; | 101 rq = *ngx_stat_requests; |
102 rd = *ngx_stat_reading; | 102 rd = *ngx_stat_reading; |
103 wr = *ngx_stat_writing; | 103 wr = *ngx_stat_writing; |
104 | 104 |
105 b->last = ngx_sprintf(b->last, "Active connections: %d \n", ac); | 105 b->last = ngx_sprintf(b->last, "Active connections: %D \n", ac); |
106 | 106 |
107 b->last = ngx_cpymem(b->last, "server accepts handled requests\n", | 107 b->last = ngx_cpymem(b->last, "server accepts handled requests\n", |
108 sizeof("server accepts handled requests\n") - 1); | 108 sizeof("server accepts handled requests\n") - 1); |
109 | 109 |
110 b->last = ngx_sprintf(b->last, " %d %d %d \n", ap, hn, rq); | 110 b->last = ngx_sprintf(b->last, " %D %D %D \n", ap, hn, rq); |
111 | 111 |
112 b->last = ngx_sprintf(b->last, "Reading: %d Writing: %d Waiting: %d \n", | 112 b->last = ngx_sprintf(b->last, "Reading: %D Writing: %D Waiting: %d \n", |
113 rd, wr, ac - (rd + wr)); | 113 rd, wr, ac - (rd + wr)); |
114 | 114 |
115 r->headers_out.status = NGX_HTTP_OK; | 115 r->headers_out.status = NGX_HTTP_OK; |
116 r->headers_out.content_length_n = b->last - b->pos; | 116 r->headers_out.content_length_n = b->last - b->pos; |
117 | 117 |
118 b->last_buf = 1; | 118 b->last_buf = 1; |