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.
pull/71/head
Ben Aldrich 10 years ago
parent 5c8a03100e
commit a4ec4177a6

@ -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
}

Loading…
Cancel
Save