Skip to content

Commit 5c6f341

Browse files
authored
Fix copy-paste error of calculation of suspending time in Clock.cpp (#85545)
We should be assigning the value to suspension, not continuous!
1 parent a271eb2 commit 5c6f341

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)