mkevac / debugcharts

Very simple charts with some debug data for Go programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run error

lengrongfu opened this issue · comments

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x7ad1a0]

goroutine 19 [running]:
github.com/mkevac/debugcharts.(*server).gatherData(0xa9bc60)
        C:/golang/gowork/src/github.com/mkevac/debugcharts/debugcharts.go:112 +0x210
created by github.com/mkevac/debugcharts.init.1
        C:/golang/gowork/src/github.com/mkevac/debugcharts/debugcharts.go:158 +0x2f9
exit status 2

Seems that Times function is not implemented for Microsoft Windows and I did not check the error returned.

I check for an error now, but, unfortunately, CPU chart does not work for Microsoft Windows. This feature should be added to https://github.com/shirou/gopsutil