benjojo / sping

Split ping, see what direction the loss or latency is on

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fatal error: concurrent map writes

tamihiro opened this issue · comments

Hi, thanks for sharing the code. I often get a runtime error after running sping for sometime. Please check the output in this link.
I have PR'ed #7 which I think should be a fix for this problem, treating timeSyncs as a struct with sync.Mutex as its member field. With this fix I have been running it for several hours now.

Merged your PR, thanks