Skip to content

Commit

Permalink
fix monitor counters
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Dec 8, 2014
1 parent b659de8 commit cf0b2fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hackney_connect/hackney_pool.erl
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,6 @@ delete_metrics(Mod, PoolName) ->
update_usage(#state{name=PoolName, mod_metrics=Mod, sockets=Sockets,
clients=Clients}) ->
Mod:update_histogram([hackney_pool, PoolName,in_use_count],
dict:size(Clients)),
dict:size(Clients) - 1),
Mod:update_histogram([hackney_pool, PoolName, free_count],
dict:size(Sockets)).
dict:size(Sockets) - 1).

0 comments on commit cf0b2fa

Please sign in to comment.