summaryrefslogtreecommitdiff
path: root/internal/collector/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/collector/types.go')
-rw-r--r--internal/collector/types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/collector/types.go b/internal/collector/types.go
index b0db600..13bcb1f 100644
--- a/internal/collector/types.go
+++ b/internal/collector/types.go
@@ -7,7 +7,7 @@ type CPULine struct {
}
// Total returns sum of all CPU counters.
-func (c *CPULine) Total() int64 {
+func (c CPULine) Total() int64 {
return c.User + c.Nice + c.System + c.Idle + c.Iowait + c.IRQ + c.SoftIRQ + c.Steal + c.Guest + c.GuestNice
}