From 3a7f4f5848eeb52b5ad9e7054120945b2b29a938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 7 Jan 2026 08:56:00 +0800 Subject: [PATCH] Uptime (Windows): silences a compiler warning --- src/detection/uptime/uptime_windows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/uptime/uptime_windows.c b/src/detection/uptime/uptime_windows.c index fb6a78727..030b58bed 100644 --- a/src/detection/uptime/uptime_windows.c +++ b/src/detection/uptime/uptime_windows.c @@ -22,13 +22,13 @@ const char* ffDetectUptime(FFUptimeResult* result) } result->uptime = GetTickCount64(); +ok: + #else uint64_t uptime; QueryInterruptTime(&uptime); result->uptime = uptime / 10000; // Convert from 100-nanosecond intervals to milliseconds #endif - -ok: result->bootTime = ffTimeGetNow() - result->uptime; return NULL; }