diff --git a/src/detection/uptime/uptime_windows.c b/src/detection/uptime/uptime_windows.c index 775b428e9..6978a1163 100644 --- a/src/detection/uptime/uptime_windows.c +++ b/src/detection/uptime/uptime_windows.c @@ -1,13 +1,11 @@ #include "uptime.h" #include "common/time.h" -#include +#include const char* ffDetectUptime(FFUptimeResult* result) { - // According to MSDN, this function only fails if it's called with NULL - QueryUnbiasedInterruptTime(&result->uptime); - result->uptime /= 10000; // Convert from 100-nanosecond intervals to milliseconds + result->uptime = GetTickCount64(); result->bootTime = ffTimeGetNow() - result->uptime; return NULL; }