Skip to content

Commit

Permalink
Fix lint error open-telemetry#5988
Browse files Browse the repository at this point in the history
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
  • Loading branch information
iblancasa committed Aug 29, 2022
1 parent 1eda0c4 commit 0d6a507
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion service/internal/telemetry/process_telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ func (pm *processMetrics) updateCPUSeconds() float64 {
return 0
}

return times.Total()
total := times.User + times.System + times.Idle + times.Nice +
times.Iowait + times.Irq + times.Softirq + times.Steal + times.Guest +
times.GuestNice

return total
}

func (pm *processMetrics) updateRSSMemory() int64 {
Expand Down

0 comments on commit 0d6a507

Please sign in to comment.