Merge pull request #71 from vrecan/patch-1

Fix cpu percent on windows
pull/73/head
shirou 10 years ago
commit 502be48c80

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