Message ID | c41b25e963973dac1eb50cd3ae1f79741bc89ed1.1588599086.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Minimal patch series to fix the CI runs of hn/reftable | expand |
diff --git a/reftable/stack.c b/reftable/stack.c index 3c5f4a43130..2d0b831dda1 100644 --- a/reftable/stack.c +++ b/reftable/stack.c @@ -289,7 +289,12 @@ static int reftable_stack_reload_maybe_reuse(struct reftable_stack *st, free_names(names_after); delay = delay + (delay * rand()) / RAND_MAX + 100; +#ifdef _MSC_VER + sleep_millisec(delay/1000); +#else + /* TODO! fix this, `usleep()` is not portable enough for us to use */ usleep(delay); +#endif } return 0;