aboutsummaryrefslogtreecommitdiff
path: root/www/freenginx-devel/files/extra-patch-ngx_http_lua_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/freenginx-devel/files/extra-patch-ngx_http_lua_time.c')
-rw-r--r--www/freenginx-devel/files/extra-patch-ngx_http_lua_time.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/www/freenginx-devel/files/extra-patch-ngx_http_lua_time.c b/www/freenginx-devel/files/extra-patch-ngx_http_lua_time.c
deleted file mode 100644
index cc330b2e3c5c..000000000000
--- a/www/freenginx-devel/files/extra-patch-ngx_http_lua_time.c
+++ /dev/null
@@ -1,24 +0,0 @@
---- ../lua-nginx-module-0.10.29/src/ngx_http_lua_time.c.orig 2025-01-17 00:24:35.000000000 -0500
-+++ ../lua-nginx-module-0.10.29/src/ngx_http_lua_time.c 2025-11-02 00:11:45.551096000 -0400
-@@ -28,7 +28,21 @@
- double
- ngx_http_lua_ffi_req_start_time(ngx_http_request_t *r)
- {
-+#if defined freenginx
-+ ngx_time_t *tp;
-+
-+ tp = ngx_timeofday();
-+ tp->sec -= (ngx_current_msec - r->start_time) / 1000;
-+ tp->msec -= (ngx_current_msec - r->start_time) % 1000;
-+ if (tp->msec > NGX_MAX_INT_T_VALUE) {
-+ tp->msec += 1000;
-+ tp->sec -= 1;
-+ }
-+
-+ return tp->sec + tp->msec / 1000.0;
-+#else
- return r->start_sec + r->start_msec / 1000.0;
-+#endif
- }
-
-