aboutsummaryrefslogtreecommitdiff
path: root/www/freenginx-devel/files/extra-patch-ngx_http_vhost_traffic_status_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/freenginx-devel/files/extra-patch-ngx_http_vhost_traffic_status_module.c')
-rw-r--r--www/freenginx-devel/files/extra-patch-ngx_http_vhost_traffic_status_module.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/freenginx-devel/files/extra-patch-ngx_http_vhost_traffic_status_module.c b/www/freenginx-devel/files/extra-patch-ngx_http_vhost_traffic_status_module.c
new file mode 100644
index 000000000000..50eca3992c88
--- /dev/null
+++ b/www/freenginx-devel/files/extra-patch-ngx_http_vhost_traffic_status_module.c
@@ -0,0 +1,14 @@
+--- ../nginx-module-vts-c382342/src/ngx_http_vhost_traffic_status_module.c.orig 2025-11-02 09:49:45.010029000 -0500
++++ ../nginx-module-vts-c382342/src/ngx_http_vhost_traffic_status_module.c 2025-11-02 09:56:01.011946000 -0500
+@@ -354,7 +354,11 @@
+ tp = ngx_timeofday();
+
+ ms = (ngx_msec_int_t)
++#if (defined freenginx && nginx_version >= 1029000)
++ (tp->sec * 1000 + tp->msec - r->start_time);
++#else
+ ((tp->sec - r->start_sec) * 1000 + (tp->msec - r->start_msec));
++#endif
+ return ngx_max(ms, 0);
+ }
+