Skip to content

Commit f23106c

Browse files
authored
[6.3] Fix calculation of suspending time in Clock.cpp
We are updating the wrong variable: it should be suspending, not continuous!
1 parent d24cc31 commit f23106c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/Clock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ switch (clock_id) {
188188
#elif WE_HAVE_STD_CHRONO
189189
auto num = std::chrono::steady_clock::period::num;
190190
auto den = std::chrono::steady_clock::period::den;
191-
continuous.tv_sec = num / den;
192-
continuous.tv_nsec = (num * 1'000'000'000ll) % den
191+
suspending.tv_sec = num / den;
192+
suspending.tv_nsec = (num * 1'000'000'000ll) % den
193193
#else
194194
#error Missing platform suspending time definition
195195
#endif

0 commit comments

Comments
 (0)