Skip to content

Commit 3f06da7

Browse files
committed
metrics: fix gofmt linter warnings
1 parent 546d421 commit 3f06da7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metrics/metrics.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ func CollectProcessMetrics(refresh time.Duration) {
6868
}
6969
// Iterate loading the different stats and updating the meters
7070
for i := 1; ; i++ {
71-
location1 := i%2
72-
location2 := (i-1)%2
71+
location1 := i % 2
72+
location2 := (i - 1) % 2
7373

7474
runtime.ReadMemStats(memstats[location1])
7575
memAllocs.Mark(int64(memstats[location1].Mallocs - memstats[location2].Mallocs))

0 commit comments

Comments
 (0)