diff options
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 8bca1bce5c..7ed7a13240 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -2436,7 +2436,7 @@ int Process::sys$usleep(useconds_t usec) REQUIRE_PROMISE(stdio); if (!usec) return 0; - u64 wakeup_time = Thread::current()->sleep(usec / 1000); + u64 wakeup_time = Thread::current()->sleep(usec * TimeManagement::the().ticks_per_second() / 1000000); if (wakeup_time > g_uptime) return -EINTR; return 0; |