Skip to content

Commit 8b78589

Browse files
authored
Merge pull request #85546 from AZero13/patch-20
[6.3] Fix calculation of suspending time in Clock.cpp
2 parents d24cc31 + f23106c commit 8b78589

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)