Skip to content

Commit 964189c

Browse files
committed
missing header to define the nginx version
1 parent 53b89f5 commit 964189c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ngx_http_accounting_worker_process.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <ngx_core.h>
33
#include <ngx_http.h>
44
#include <ngx_http_upstream.h>
5+
#include <nginx.h>
56

67
#include <syslog.h>
78

@@ -108,7 +109,7 @@ ngx_http_accounting_handler(ngx_http_request_t *r)
108109
state = r->upstream_states->elts;
109110
if (state[0].status) {
110111
// not even checking the status here...
111-
#if (nginx_version < 1009000)
112+
#if (nginx_version < 1009000)
112113
upstream_req_latency_ms = (state[0].response_sec * 1000 + state[0].response_msec);
113114
#else
114115
upstream_req_latency_ms = state[0].response_time;

0 commit comments

Comments
 (0)