This commit is contained in:
Florian Weingarten
2015-04-28 02:11:01 -04:00
parent edfd86624c
commit 8ba47df8d1
4 changed files with 20 additions and 21 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ func (s *poolStats) Get(k string) {
s.m.Lock()
defer s.m.Unlock()
s.get += 1
s.get++
cur := s.get - s.put
if cur > s.max {
s.max = cur
@@ -53,7 +53,7 @@ func (s *poolStats) Put(k string) {
s.m.Lock()
defer s.m.Unlock()
s.put += 1
s.put++
if k != "" {
s.mput[k]++