comparison src/http/modules/ngx_http_split_clients_module.c @ 3607:8bff43217171

do not try to calculate procent sum if there was an error
author Igor Sysoev <igor@sysoev.ru>
date Tue, 08 Jun 2010 09:06:57 +0000
parents e60e00b4fe0c
children 12d8d2f30205
comparison
equal deleted inserted replaced
3606:39535a91776d 3607:8bff43217171
161 161
162 rv = ngx_conf_parse(cf, NULL); 162 rv = ngx_conf_parse(cf, NULL);
163 163
164 *cf = save; 164 *cf = save;
165 165
166 if (rv != NGX_CONF_OK) {
167 return rv;
168 }
169
166 sum = 0; 170 sum = 0;
167 last = 0; 171 last = 0;
168 part = ctx->parts.elts; 172 part = ctx->parts.elts;
169 173
170 for (i = 0; i < ctx->parts.nelts; i++) { 174 for (i = 0; i < ctx->parts.nelts; i++) {