Commit f33e36c
committed
[#29205] docdb: Fixed rounding error in StopWatch
Summary:
This test expects simulated sleep time to match the expectations, but depending on number of CPU cycles per seconds there might be a rounding error in `StopWatch` calculations.
Fixed this by updating calculation formula to first do multiplication and then do division.
Jira: DB-18968
Test Plan: Jenkins
Reviewers: arybochkin
Reviewed By: arybochkin
Subscribers: ybase
Tags: #jenkins-ready
Differential Revision: https://phorge.dev.yugabyte.com/D480421 parent 1a22cc7 commit f33e36c
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
0 commit comments