aboutsummaryrefslogtreecommitdiffstats
path: root/metrics
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2017-11-11 01:06:45 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-11 01:06:45 +0800
commit86f6568f6618945b19057553ec32690d723da982 (patch)
treeea7d9f92f3bcf5af22be1edfdbb302b5a5161f14 /metrics
parent3ee86a57f328530707974288e9db87b7c05283f9 (diff)
downloaddexon-86f6568f6618945b19057553ec32690d723da982.tar.gz
dexon-86f6568f6618945b19057553ec32690d723da982.tar.zst
dexon-86f6568f6618945b19057553ec32690d723da982.zip
build: enable unconvert linter (#15456)
* build: enable unconvert linter - fixes #15453 - update code base for failing cases * cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
Diffstat (limited to 'metrics')
-rw-r--r--metrics/metrics.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go
index da2cdbc53..afdfd89fa 100644
--- a/metrics/metrics.go
+++ b/metrics/metrics.go
@@ -112,10 +112,10 @@ func CollectProcessMetrics(refresh time.Duration) {
memPauses.Mark(int64(memstats[i%2].PauseTotalNs - memstats[(i-1)%2].PauseTotalNs))
if ReadDiskStats(diskstats[i%2]) == nil {
- diskReads.Mark(int64(diskstats[i%2].ReadCount - diskstats[(i-1)%2].ReadCount))
- diskReadBytes.Mark(int64(diskstats[i%2].ReadBytes - diskstats[(i-1)%2].ReadBytes))
- diskWrites.Mark(int64(diskstats[i%2].WriteCount - diskstats[(i-1)%2].WriteCount))
- diskWriteBytes.Mark(int64(diskstats[i%2].WriteBytes - diskstats[(i-1)%2].WriteBytes))
+ diskReads.Mark(diskstats[i%2].ReadCount - diskstats[(i-1)%2].ReadCount)
+ diskReadBytes.Mark(diskstats[i%2].ReadBytes - diskstats[(i-1)%2].ReadBytes)
+ diskWrites.Mark(diskstats[i%2].WriteCount - diskstats[(i-1)%2].WriteCount)
+ diskWriteBytes.Mark(diskstats[i%2].WriteBytes - diskstats[(i-1)%2].WriteBytes)
}
time.Sleep(refresh)
}