anchor.diff:      [{cacheSize, NumNodes * MbPerNode},
        {opsPerSec, OpsPerSec},
        {evictionsPerSec, EvictionsPerSec},
  -     {cachePercentUsed, CurBytes / MaxBytes}].
  +     {cachePercentUsed, float_round(CurBytes / MaxBytes)}].
   
   % GET /pools/default/stats?stat=opsbysecond
   % GET /pools/default/stats?stat=hot_keys
  
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:     Samples6 = [{hit_ratio,
                   lists:zipwith(fun(undefined, _) -> 0;
                                    (_, undefined) -> 0;
                                    (Hits, Gets)   -> float_round(Hits / Gets)
                                 end,
                                 proplists:get_value("get_hits", Samples5),
                                 proplists:get_value("cmd_get", Samples5))} |
  