aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/ngx_times.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_times.c b/src/core/ngx_times.c
index be289dd14..551e10258 100644
--- a/src/core/ngx_times.c
+++ b/src/core/ngx_times.c
@@ -87,7 +87,7 @@ ngx_time_update(time_t sec, ngx_uint_t msec)
return;
}
- if (slot == NGX_TIME_SLOTS) {
+ if (slot == NGX_TIME_SLOTS - 1) {
slot = 0;
} else {
slot++;