Skip to content

Commit 53b89f5

Browse files
committed
>= instead, flip
1 parent eb6f00c commit 53b89f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ngx_http_accounting_worker_process.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ ngx_http_accounting_handler(ngx_http_request_t *r)
108108
state = r->upstream_states->elts;
109109
if (state[0].status) {
110110
// not even checking the status here...
111-
#if (nginx_version > 1009000)
112-
upstream_req_latency_ms = state[0].response_time;
113-
#else
111+
#if (nginx_version < 1009000)
114112
upstream_req_latency_ms = (state[0].response_sec * 1000 + state[0].response_msec);
113+
#else
114+
upstream_req_latency_ms = state[0].response_time;
115115
#endif
116116
}
117117
}

0 commit comments

Comments
 (0)