mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
Remove parens
This commit is contained in:
parent
696e1e0123
commit
a3144a6850
@ -215,5 +215,5 @@ func (p *Process) CPUPercent() (float64, error) {
|
||||
created := time.Unix(0, crt_time * int64(time.Millisecond))
|
||||
totalTime := time.Since(created).Seconds()
|
||||
|
||||
return (100 * (cput.Total() / totalTime)), nil
|
||||
return 100 * cput.Total() / totalTime, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user