diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-04-03 21:54:13 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-04-03 21:54:13 +0000 |
commit | da4b660274811c33a328cb1b0fa9dc41f694bc16 (patch) | |
tree | a0dd74d6b2238acb96e0041474026047fc4c29da /src | |
parent | 52a282d04b0dfb14e0171fc69a7f85fb1402e482 (diff) | |
download | nginx-da4b660274811c33a328cb1b0fa9dc41f694bc16.tar.gz nginx-da4b660274811c33a328cb1b0fa9dc41f694bc16.zip |
use 60 seconds interval but not 61 seconds
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_log_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c index 55328312c..e4b861bf0 100644 --- a/src/http/modules/ngx_http_log_module.c +++ b/src/http/modules/ngx_http_log_module.c @@ -302,7 +302,7 @@ ngx_http_log_write(ngx_http_request_t *r, ngx_http_log_t *log, u_char *buf, log->disk_full_time = now; } - if (now - log->error_log_time > 60) { + if (now - log->error_log_time > 59) { ngx_log_error(NGX_LOG_ALERT, r->connection->log, err, ngx_write_fd_n " to \"%V\" failed", &log->file->name); @@ -313,7 +313,7 @@ ngx_http_log_write(ngx_http_request_t *r, ngx_http_log_t *log, u_char *buf, return; } - if (now - log->error_log_time > 60) { + if (now - log->error_log_time > 59) { ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, ngx_write_fd_n " to \"%V\" was incomplete: %z of %uz", &log->file->name, n, len); |