Stop using deprecated functions

This commit is contained in:
Ingo Oppermann
2022-08-15 16:30:24 +03:00
parent 96d8d51a7d
commit dfc12ab9fb
18 changed files with 65 additions and 63 deletions

View File

@@ -98,7 +98,8 @@ func (p *process) cpuTimes() (*cpuTimesStat, error) {
}
s := &cpuTimesStat{
total: times.Total(),
total: times.User + times.System + times.Idle + times.Nice + times.Iowait + times.Irq +
times.Softirq + times.Steal + times.Guest + times.GuestNice,
system: times.System,
user: times.User,
}