divan / expvarmon

TermUI based monitor for Go apps using expvars (/debug/vars). Quickest way to monitor your Go app(s).
MIT License
2.02k stars 101 forks source link

fix panic occurs when using Float value #7

Closed hhatto closed 9 years ago

hhatto commented 9 years ago

panic occurs when include zero value

panic: interface conversion: interface is float64, not int64

goroutine 338 [running]:
main.(*Stack).Push(0xc820016f30, 0x2b6720, 0xc820328bd0)
    src/github.com/divan/expvarmon/stack.go:38 +0x2a7
main.(*Service).Update(0xc8200b8000, 0xc820196710)
    src/github.com/divan/expvarmon/service.go:89 +0x3ed
created by main.UpdateAll

expvarmon is great tool!! Thanks

divan commented 9 years ago

Thanks!