Closed robertodauria closed 1 year ago
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
ndt5/ndt5.go | 2 | 88.95% | ||
metrics/metrics.go | 4 | 60.0% | ||
ndt5/c2s/c2s.go | 4 | 71.43% | ||
ndt7/upload/sender/sender.go | 5 | 65.91% | ||
<!-- | Total: | 15 | --> |
Totals | |
---|---|
Change from base Build 1634: | -0.7% |
Covered Lines: | 1815 |
Relevant Lines: | 2228 |
This PR changes the NDT5 client code to use the monotonic performance.now() instead of Date.now() where available. This fixes a rare bug that happens when the system clock is changed while a measurement is running, which would cause an incorrect client-side throughput to be displayed -- in extreme cases, even a negative value.
(The code is basically the same as in ndt7-js)
This change is