Skip to content

Commit 4540919

Browse files
authored
[k2] Fix usleep() (#1331)
1 parent b50696b commit 4540919

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime-light/stdlib/system/system-functions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ inline kphp::coro::task<> f$usleep(int64_t microseconds) noexcept {
7575
kphp::log::warning("value of microseconds ({}) must be positive", microseconds);
7676
co_return;
7777
}
78-
const std::chrono::milliseconds sleep_time{microseconds * 1000};
78+
const std::chrono::microseconds sleep_time{microseconds};
7979
co_await wait_for_timer_t{sleep_time};
8080
}
8181

0 commit comments

Comments
 (0)