Skip to content

Commit

Permalink
style: format code with Gofumpt and Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in d9e1940 according to the output
from Gofumpt and Prettier.

Details: #2161
  • Loading branch information
deepsource-autofix[bot] authored Dec 12, 2023
1 parent d9e1940 commit 3ad5912
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/observability/metrics/mem/index/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,17 +683,16 @@ func (*memoryMetrics) Register(m metrics.Meter) error {
otherSys.Observe(ctx, int64(mstats.OtherSys))
nextGcSys.Observe(ctx, int64(mstats.NextGC))


ptMs := int64(0)
if mstats.PauseTotalNs > 0 {
ptMs = int64(mstats.PauseTotalNs / uint64(time.Millisecond))
}
pauseTotalMs.Observe(ctx, ptMs)
numGC.Observe(ctx, int64(mstats.NumGC))
numForcedGC.Observe(ctx, int64(mstats.NumForcedGC))
heapWillReturn.Observe(ctx, int64(mstats.HeapIdle - mstats.HeapReleased))
liveObjects.Observe(ctx, int64(mstats.Mallocs - mstats.Frees))

heapWillReturn.Observe(ctx, int64(mstats.HeapIdle-mstats.HeapReleased))
liveObjects.Observe(ctx, int64(mstats.Mallocs-mstats.Frees))
},
)
}

0 comments on commit 3ad5912

Please sign in to comment.