mirror of https://github.com/nginx/nginx
Merge 67b26d8238 into 61690b5dc0
This commit is contained in:
commit
5c19238379
|
|
@ -912,6 +912,10 @@ ngx_http_limit_req_zone(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||||
} else if (ngx_strncmp(p, "r/m", 3) == 0) {
|
} else if (ngx_strncmp(p, "r/m", 3) == 0) {
|
||||||
scale = 60;
|
scale = 60;
|
||||||
len -= 3;
|
len -= 3;
|
||||||
|
|
||||||
|
} else if (ngx_strncmp(p, "r/h", 3) == 0) {
|
||||||
|
scale = 3600;
|
||||||
|
len -= 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
rate = ngx_atoi(value[i].data + 5, len - 5);
|
rate = ngx_atoi(value[i].data + 5, len - 5);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue