summaryrefslogtreecommitdiffstats
path: root/src/runtime/trace2time.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/trace2time.go')
-rw-r--r--src/runtime/trace2time.go2
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)