anchor.diff:  handle_cast(unhandled, unhandled) ->
       unhandled.
   
  -handle_info({tick, TS}, #state{bucket=Bucket, counters=Counters} = State) ->
  +handle_info({tick, TS}, #state{bucket=Bucket, counters=Counters, last_ts=LastTS}
  +            = State) ->
       case catch ns_memcached:stats(Bucket) of
           {ok, Stats} ->
               TS1 = latest_tick(TS),
  -            {Entry, NewCounters} = parse_stats(TS1, Stats, Counters),
  +            {Entry, NewCounters} = parse_stats(TS1, Stats, Counters, LastTS),
               case Counters of % Don't send event with undefined values
                   undefined ->
                       ok;
  
positive.code:                       [37610,823281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5]},
                           parse_stats(
                             Now, Input,
                             lists:duplicate(length([?STAT_COUNTERS]), 0))).
  
negative.code:                  undefined ->
                       lists:duplicate(length([?STAT_COUNTERS]), undefined);
                   _ ->
                       Delta = TS - LastTS,
                       if Delta > 0 ->
                               lists:zipwith(
                                 fun (A, B) ->
                                         Res = (A - B) * 1000 div Delta,
                                         if Res < 0 -> 0;
                                            true -> Res
                                         end
                                 end, Counters, LastCounters);
                          true ->
                               lists:duplicate(length([?STAT_COUNTERS]),
                                               undefined)
                       end
               end,
      {list_to_tuple([stat_entry, TS] ++ Gauges ++ Deltas), Counters}.
  
  