anchor.diff:  averages([], Acc) -> Acc;
   averages([{Key, counter}|Rest], Acc) ->
       %% nothing to move, but we accumulate the item
  -    [Item] = ets:lookup(?TABLE, {Key, counter}),
  -    averages(Rest, [Item|Acc]);
  +    [{_, Val}] = ets:lookup(?TABLE, {Key, counter}),
  +    averages(Rest, [{Key, Val}|Acc]);
   averages([{Key, mavg}|Rest], Acc) ->
       [{_, Count, _}] = ets:lookup(?TABLE, {Key, total}),
       Item = {Key, Count,
  
positive.code:     incr_item(local_publishes_sent).
  
  incr_subscription_count() ->
      update_item(local_subscription_count, {2, 1}).
  
  decr_subscription_count() ->
      update_item(local_subscription_count, {2, -1, 0, 0}).
  
  incr_socket_count() ->
      incr_item(local_socket_count).
  
negative.code:     incr_item(local_bytes_sent, V).
  
  incr_active_clients() ->
      update_item({local_active_clients, counter}, {2, 1}).
  
  incr_expired_clients() ->
      update_item({local_expired_clients, counter}, {2, 1}).
  
  decr_active_clients() ->
      update_item({local_active_clients, counter}, {2,-1, 0, 0}).
  
  incr_inactive_clients() ->
      update_item({local_inactive_clients, counter}, {2, 1}).
  
  decr_inactive_clients() ->
      update_item({local_inactive_clients, counter}, {2, -1, 0, 0}).
  
  incr_messages_received() ->
      incr_item(local_messages_received).
  