Skip to content

Commit c2150ba

Browse files
authored
Change sleep function to accept seconds instead of ms (#2139)
1 parent 83fa834 commit c2150ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

3rd/compat-mingw/unistd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ void usleep(size_t us) {
126126
}
127127
}
128128

129-
void sleep(size_t ms) {
130-
Sleep(ms);
129+
void sleep(size_t sec) {
130+
Sleep(sec * 1000UL);
131131
}
132132

133133
int clock_gettime(int what, struct timespec* ti) {

0 commit comments

Comments
 (0)