diff options
Diffstat (limited to 'uisimulator/x11')
-rw-r--r-- | uisimulator/x11/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/x11/thread.c b/uisimulator/x11/thread.c index 12a3b3e0c7..4288c0ffcb 100644 --- a/uisimulator/x11/thread.c +++ b/uisimulator/x11/thread.c | |||
@@ -31,7 +31,7 @@ static void msleep(int msec) | |||
31 | struct timeval delay; | 31 | struct timeval delay; |
32 | 32 | ||
33 | delay.tv_sec = msec / 1000; | 33 | delay.tv_sec = msec / 1000; |
34 | delay.tv_usec = (msec - 1000 * delay.tv_sec) * 1000; | 34 | delay.tv_usec = (msec % 1000) * 1000; |
35 | select(0, NULL, NULL, NULL, &delay); /* portable sub-second sleep */ | 35 | select(0, NULL, NULL, NULL, &delay); /* portable sub-second sleep */ |
36 | } | 36 | } |
37 | 37 | ||