mirror of
https://github.com/datarhei/core.git
synced 2025-10-13 19:54:15 +08:00
Stop using deprecated functions
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user