Fix cpu percent on windows

Tested on windows 7:

When divided by 100 you get cpu percentage of  %0.14 when task manager shows %14. Once this is removed they match.
This commit is contained in:
Ben Aldrich 2015-09-04 18:48:20 -06:00
parent 5c8a03100e
commit a4ec4177a6
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ func CPUPercent(interval time.Duration, percpu bool) ([]float64, error) {
if l.LoadPercentage == nil {
continue
}
ret = append(ret, float64(*l.LoadPercentage)/100.0)
ret = append(ret, float64(*l.LoadPercentage))
}
return ret, nil
}