diff --git a/sched/usleep.c b/sched/usleep.c index 69e379c7bc..be3c92f53e 100644 --- a/sched/usleep.c +++ b/sched/usleep.c @@ -92,7 +92,7 @@ void usleep(unsigned long usec) { (void)sigemptyset(&set); ts.tv_sec = usec / 1000000; - ts.tv_nsec = usec % 1000; + ts.tv_nsec = (usec % 1000000) * 1000; (void)sigtimedwait(&set, &value, &ts); } }