1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

Merge pull request #431 from Leonid99/whitespace

process.go: reformat whitespaces to keep gofmt happy
This commit is contained in:
shirou 2017-10-05 08:03:01 +09:00 committed by GitHub
commit 1873a1fd4f

View File

@ -199,6 +199,7 @@ func (p *Process) MemoryPercent() (float32, error) {
return (100 * float32(used) / float32(total)), nil
}
// CPU_Percent returns how many percent of the CPU time this process uses
func (p *Process) CPUPercent() (float64, error) {
crt_time, err := p.CreateTime()
@ -206,7 +207,6 @@ func (p *Process) CPUPercent() (float64, error) {
return 0, err
}
cput, err := p.Times()
if err != nil {
return 0, err