anchor.diff:      Samples6 = [{hit_ratio,
                    lists:zipwith(fun(undefined, _) -> 0;
                                     (_, undefined) -> 0;
  -                                  (Hits, Gets)   ->
  -                                       float(trunc((1000.0 * Hits) /
  -                                                   (1000.0 * Gets)) /
  -                                             1000.0)
  +                                  (Hits, Gets)   -> float_round(Hits / Gets)
                                  end,
                                  proplists:get_value("get_hits", Samples5),
                                  proplists:get_value("cmd_get", Samples5))} |
  
positive.code:     ?assertEqual(0.0, avg([])),
      ?assertEqual(5.0, avg([5])),
      ?assertEqual(5.0, avg([5, 5, 5])),
      ?assertEqual(5.0, avg([1, 5, 10])),
      ok.
  
  -endif.
  
  
negative.code:     [{cacheSize, NumNodes * MbPerNode},
       {opsPerSec, OpsPerSec},
       {evictionsPerSec, EvictionsPerSec},
       {cachePercentUsed, float_round(CurBytes / MaxBytes)}].
  
  % GET /pools/default/stats?stat=opsbysecond
  % GET /pools/default/stats?stat=hot_keys
  