-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exit status 1 on Mac OS X, go test fails #31
Comments
It seems host_processor_info() is required to get CPU information on darwin. I will try to use it. please wait for a while. |
+1 |
👍 Experiencing this error as well |
Sorry to keep you waiting, I just implement CPUTimes on darwin, by adhoc compiling the tiny c program which can output cpu times. This is very hacky way, but it works, I think. |
Due to the #57 (thanks for pquerna), it only enabled when Thank you |
Since I change to use CGO on darwin, close this issue. If you find something, please re-open. Thank you. |
export FindProc(procPath, filter)
When calling CPUPercent on OS X (Darwin) I get an error returned with the message "Exit status 1".
Tracing it through gopsutil reveals that doSysctrl() with argument "kern.cp_time" is throwing an error.
This is because OS X doesn't have "kern.cp_time" in /usr/sbin/sysctl
As a result, go test fails on OS X.
The text was updated successfully, but these errors were encountered: