anchor.diff:                                 proplists:get_value("get_hits", Samples5),
                                  proplists:get_value("cmd_get", Samples5))} |
                   Samples5],
  -    {ok, SamplesInterval, LastSampleTStamp, Samples6}.
  +    Samples7 = lists:map(fun({t, Vals}) -> {t, Vals};
  +                            ({K, Vals}) -> {K, deltas(Vals)}
  +                         end,
  +                         Samples6),
  +    {ok, SamplesInterval, LastSampleTStamp, Samples7}.
   
   build_bucket_stats_ops_response(PoolId, BucketId, Params) ->
       {ok, SamplesInterval, LastSampleTStamp, Samples2} =
  
positive.code:     NumNodes = length(ns_node_disco:nodes_wanted()),
      SamplesNum = 10,
      Samples = get_stats_raw(PoolId, BucketId, SamplesNum),
      OpsPerSec = avg(sum_stats_ops(Samples)),
      EvictionsPerSec = avg(proplists:get_value("evictions", Samples)),
      CurBytes = erlang:max(avg(proplists:get_value("bytes", Samples)),
                            1),
      MaxBytes = erlang:max(avg(proplists:get_value("limit_maxbytes", Samples)),
  
negative.code: 
  float_round(X) -> float(trunc(1000.0 * X)) / 1000.0.
  
  deltas(undefined)  -> undefined;
  deltas([])         -> [];
  deltas([X | Rest]) -> deltas(Rest, X, []).
  
  deltas([], _, Acc) -> lists:reverse(Acc);
  deltas([X | Rest], Prev, Acc) ->
      deltas(Rest, X, [erlang:max(X - Prev, 0) | Acc]).
  
  -ifdef(EUNIT).
  
  test() ->
  