do not try to calculate procent sum if there was an error
This commit is contained in:
parent
78e422da42
commit
04944c154c
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue