comparison src/http/modules/ngx_http_stub_status_module.c @ 42:41ccba1aba45 NGINX_0_1_21

nginx 0.1.21 *) 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 <http://sysoev.ru>
date Tue, 22 Feb 2005 00:00:00 +0300
parents a39d1b793287
children 4989c3d25945
comparison
equal deleted inserted replaced
41:4d8e7a81b3a0 42:41ccba1aba45
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;