Fix use of deprecated function

This commit is contained in:
Ingo Oppermann
2023-02-01 16:24:57 +01:00
parent 2a3288ffd0
commit 1d30d9eecd
2 changed files with 7 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ func (p *process) cpuTimes() (*cpuTimesStat, error) {
}
s := &cpuTimesStat{
total: times.Total(),
total: cpuTotal(times),
system: times.System,
user: times.User,
}