From a3144a6850533d51248bfe549adaa5b0d6fbdbbc Mon Sep 17 00:00:00 2001 From: Kemal Hadimli Date: Thu, 28 Sep 2017 14:43:04 +0300 Subject: [PATCH] Remove parens --- process/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/process.go b/process/process.go index 504d7d4..cc72dc2 100644 --- a/process/process.go +++ b/process/process.go @@ -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 }