anchor.diff:  handle_info({tick, TS0}, #state{prev_counters = PrevCounters,
                                   prev_ts = PrevTS}) ->
       TS = latest_tick(TS0, 0),
  -    {Stats, NewCounters} = grab_stats(PrevCounters, TS - PrevTS),
  +    {Stats, NewCounters, Status} = grab_stats(PrevCounters, TS - PrevTS),
       Indexes = lists:foldl(
                   fun ({{B, I, _K}, _V}, Acc) ->
                           case Acc of
  
positive.code:                     ({_K, _V}, Acc) ->
                          Acc
                  end, [], Stats),
      NumConnections = proplists:get_value(index_num_connections, Stats, 0),
      NeedsRestart = proplists:get_value(index_needs_restart, Stats, false),
      index_status_keeper:update(NumConnections, NeedsRestart, Indexes),
      BucketStats = aggregate_index_stats([{B, K, V} || {{B, _, _} = K, V} <- Stats]),
      PerBucketStats = misc:keygroup(1, BucketStats),
  
negative.code:     end.
  
  grab_stats(PrevCounters, TSDiff) ->
      {StatsGauges, StatsCounters0, Status} = massage_stats(get_stats(), [], [], []),
      StatsCounters = lists:sort(StatsCounters0),
      Stats0 = diff_counters(1000.0 / TSDiff, StatsCounters, PrevCounters, []),
      Stats = lists:merge(Stats0, lists:sort(StatsGauges)),
      {Stats, StatsCounters, Status}.
  
  aggregate_index_stats([]) ->
      [];
  