Lock read of miss counter

This commit is contained in:
Adam Harrison committed 2015-11-25 17:05:19 +00:00
1 parent eb79711e0a
commit 8ac745b4e5
1 file changed
+3
+3
View File
@@ -218,6 +218,9 @@ func (fastdp fastDatapathBridge) String() string {
}
func (fastdp fastDatapathBridge) Stats() map[string]int {
lock := fastdp.startLock()
defer lock.unlock()
return map[string]int{
"FlowMisses": int(fastdp.missCount),
}