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

@@ -285,7 +285,8 @@ func (u *util) cpuTimes() (*cpuTimesStat, error) {
}
s := &cpuTimesStat{
total: times[0].Total(),
total: times[0].User + times[0].System + times[0].Idle + times[0].Nice + times[0].Iowait + times[0].Irq +
times[0].Softirq + times[0].Steal + times[0].Guest + times[0].GuestNice,
system: times[0].System,
user: times[0].User,
idle: times[0].Idle,