mirror of
https://git.freebsd.org/ports.git
synced 2025-07-02 18:10:38 -04:00
15 lines
696 B
C
15 lines
696 B
C
--- ../ngx_postgres-1.0rc5-1-g49855a0/src/ngx_postgres_util.c.orig 2015-05-28 02:58:30.914607000 +0300
|
|
+++ ../ngx_postgres-1.0rc5-1-g49855a0/src/ngx_postgres_util.c 2015-05-28 02:59:57.539743000 +0300
|
|
@@ -61,10 +61,8 @@
|
|
u->resolved->ctx = NULL;
|
|
}
|
|
|
|
- if (u->state && u->state->response_sec) {
|
|
- tp = ngx_timeofday();
|
|
- u->state->response_sec = tp->sec - u->state->response_sec;
|
|
- u->state->response_msec = tp->msec - u->state->response_msec;
|
|
+ if (u->state && u->state->response_time) {
|
|
+ u->state->response_time = ngx_current_msec - u->state->response_time;
|
|
|
|
if (u->pipe) {
|
|
u->state->response_length = u->pipe->read_length;
|