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:
parent
4daedc31f7
commit
29b14378e8
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue