We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 546d421 commit 3f06da7Copy full SHA for 3f06da7
metrics/metrics.go
@@ -68,8 +68,8 @@ func CollectProcessMetrics(refresh time.Duration) {
68
}
69
// Iterate loading the different stats and updating the meters
70
for i := 1; ; i++ {
71
- location1 := i%2
72
- location2 := (i-1)%2
+ location1 := i % 2
+ location2 := (i - 1) % 2
73
74
runtime.ReadMemStats(memstats[location1])
75
memAllocs.Mark(int64(memstats[location1].Mallocs - memstats[location2].Mallocs))
0 commit comments