-
-
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
in mac/ubuntu/centos can't get cpu time. #63
Comments
on my environment (Linux 3.13.0-57-generic #95-Ubuntu SMP and Mac OS X yosemite), it works.
Could you tell me what commit id you tested and your environment? Thank you. |
mac 10.10.5 |
@shirou it works now. thanks for your help. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ go test -v
=== RUN TestCpu_times
--- FAIL: TestCpu_times (0.00s)
cpu_test.go:13: error could not get cpu time
cpu_test.go:16: could not get CPUs could not get cpu time
=== RUN TestCpu_counts
--- PASS: TestCpu_counts (0.00s)
=== RUN TestCPUTimeStat_String
--- PASS: TestCPUTimeStat_String (0.00s)
=== RUN TestCpuInfo
--- PASS: TestCpuInfo (0.00s)
=== RUN TestCPUPercent
--- FAIL: TestCPUPercent (0.00s)
cpu_test.go:72: error could not get cpu time
cpu_test.go:75: wrong number of entries from CPUPercent: []
=== RUN TestCPUPercentPerCpu
--- FAIL: TestCPUPercentPerCpu (0.00s)
cpu_test.go:72: error could not get cpu time
cpu_test.go:75: wrong number of entries from CPUPercent: []
FAIL
exit status 1
FAIL github.com/shirou/gopsutil/cpu 0.007s
The text was updated successfully, but these errors were encountered: