From c2150ba849e2f9b6d3c4e936d370bff718e5dd1a Mon Sep 17 00:00:00 2001 From: wasabilofgu <154394792+wasabilofgu@users.noreply.github.com> Date: Wed, 4 Mar 2026 14:00:35 +0800 Subject: [PATCH] Change sleep function to accept seconds instead of ms (#2139) --- 3rd/compat-mingw/unistd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3rd/compat-mingw/unistd.c b/3rd/compat-mingw/unistd.c index b8586c92..667267a7 100644 --- a/3rd/compat-mingw/unistd.c +++ b/3rd/compat-mingw/unistd.c @@ -126,8 +126,8 @@ void usleep(size_t us) { } } -void sleep(size_t ms) { - Sleep(ms); +void sleep(size_t sec) { + Sleep(sec * 1000UL); } int clock_gettime(int what, struct timespec* ti) {