1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix usleep(2) sleeping 1000x too much regression.

This commit is contained in:
Jonas 'Sortie' Termansen 2021-06-23 22:09:57 +02:00
parent 4daedc31f7
commit 29b14378e8

View file

@ -23,6 +23,7 @@
int usleep(useconds_t usecs)
{
struct timespec delay = timespec_make(usecs / 1000, (usecs % 1000) * 1000);
struct timespec delay =
timespec_make(usecs / 1000000, (usecs % 1000000) * 1000);
return nanosleep(&delay, NULL);
}