We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8407802 commit eb6f00cCopy full SHA for eb6f00c
src/ngx_http_accounting_worker_process.c
@@ -108,7 +108,11 @@ ngx_http_accounting_handler(ngx_http_request_t *r)
108
state = r->upstream_states->elts;
109
if (state[0].status) {
110
// not even checking the status here...
111
- upstream_req_latency_ms = (state[0].response_sec * 1000 + state[0].response_msec);
+ #if (nginx_version > 1009000)
112
+ upstream_req_latency_ms = state[0].response_time;
113
+ #else
114
+ upstream_req_latency_ms = (state[0].response_sec * 1000 + state[0].response_msec);
115
+ #endif
116
}
117
118
// TODO: key should be cached to save CPU time
0 commit comments