do not try to calculate procent sum if there was an error

This commit is contained in:
Igor Sysoev 2010-06-08 09:06:57 +00:00
parent 78e422da42
commit 04944c154c

View file

@ -163,6 +163,10 @@ ngx_conf_split_clients_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
*cf = save;
if (rv != NGX_CONF_OK) {
return rv;
}
sum = 0;
last = 0;
part = ctx->parts.elts;