diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:27:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:27:10 +0000 |
commit | 32c8b04ddb6829a3f5f7267a666b4caa3cf38a1f (patch) | |
tree | 6e5b1b98afaeadd19ba7fd4b710f71cbf187942e /src/runtime/trace2time.go | |
parent | Adding upstream version 1.22.1. (diff) | |
download | golang-1.22-32c8b04ddb6829a3f5f7267a666b4caa3cf38a1f.tar.xz golang-1.22-32c8b04ddb6829a3f5f7267a666b4caa3cf38a1f.zip |
Adding upstream version 1.22.2.upstream/1.22.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/runtime/trace2time.go')
-rw-r--r-- | src/runtime/trace2time.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/trace2time.go b/src/runtime/trace2time.go index 8a4499e..7a7a53e 100644 --- a/src/runtime/trace2time.go +++ b/src/runtime/trace2time.go @@ -61,7 +61,7 @@ func traceClockNow() traceTime { func traceClockUnitsPerSecond() uint64 { if osHasLowResClock { // We're using cputicks as our clock, so we need a real estimate. - return uint64(ticksPerSecond()) + return uint64(ticksPerSecond() / traceTimeDiv) } // Our clock is nanotime, so it's just the constant time division. // (trace clock units / nanoseconds) * (1e9 nanoseconds / 1 second) |