Skip to content
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

CPU Stat panic #2

Closed
oiooj opened this issue Dec 23, 2016 · 0 comments · Fixed by #3
Closed

CPU Stat panic #2

oiooj opened this issue Dec 23, 2016 · 0 comments · Fixed by #3

Comments

@oiooj
Copy link
Contributor

oiooj commented Dec 23, 2016

panic: runtime error: index out of range

goroutine 18 [running]:
panic(0x728fc0, 0xc420014150)
	/usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/lodastack/nux.parseLine(0xc4201470b3, 0x37, 0xf4d, 0xc420017cc0)
	/home/ubuntu/.go_workspace/src/github.com/lodastack/nux/cpustat.go:102 +0x17d
github.com/lodastack/nux.CurrentProcStat(0x40eb4c, 0xc420018358, 0x1)
	/home/ubuntu/.go_workspace/src/github.com/lodastack/nux/cpustat.go:78 +0x265
github.com/lodastack/agent/agent/sysinfo.UpdateCpuStat(0x0, 0x0)
	/home/ubuntu/.go_workspace/src/github.com/lodastack/agent/agent/sysinfo/cpustat.go:23 +0x41
github.com/lodastack/agent/agent/sysinfo.init.1.func1()
	/home/ubuntu/.go_workspace/src/github.com/lodastack/agent/agent/sysinfo/collector.go:17 +0x33
created by github.com/lodastack/agent/agent/sysinfo.init.1
	/home/ubuntu/.go_workspace/src/github.com/lodastack/agent/agent/sysinfo/collector.go:25 +0x35
FAIL	_/home/ubuntu/agent/agent/agent	0.034s
=== RUN   Test_InitCollectConfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant