Permalink
Browse files

more efficient decrement

  • Loading branch information...
1 parent 986523f commit a45f876daf1b731e92d2819fecf325e99aa294d7 @joewilliams joewilliams committed Apr 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/folsom_metrics_counter.erl
@@ -48,7 +48,7 @@ dec(Name) ->
ets:update_counter(?COUNTER_TABLE, Name, -1).
dec(Name, Value) ->
- ets:update_counter(?COUNTER_TABLE, Name, Value * -1).
+ ets:update_counter(?COUNTER_TABLE, Name, -Value).
get_value(Name) ->
[{_, Values}] = ets:lookup(?COUNTER_TABLE, Name),

0 comments on commit a45f876

Please sign in to comment.