anchor.diff:                                    end
                             end),
       TotalDisk = Z2(couch_docs_actual_disk_size, couch_views_actual_disk_size,
  -                          fun (Views, Docs) ->
  -                                  Views + Docs
  -                          end),
  +                   fun (Views, Docs) ->
  +                           Views + Docs
  +                   end),
   
       ResidenceCalculator = fun (NonResident, Total) ->
                                     try (Total - NonResident) * 100 / Total
  
positive.code:     DocsFragmentation = Z2(couch_docs_data_size, couch_docs_disk_size,
                             Fragmentation),
      ViewsFragmentation = Z2(couch_views_data_size, couch_views_disk_size,
                             Fragmentation),
  
      ActiveResRate = Z2(vb_active_num_non_resident, curr_items,
                         ResidenceCalculator),
  
negative.code: 
  last_membase_sample(BucketName, Nodes) ->
      lists:foldl(
        fun ({_, Stats},
             {AccMem, AccItems, AccOps, AccFetches, AccDisk, AccData}) ->
                {extract_interesting_stat(mem_used, Stats) + AccMem,
                 extract_interesting_stat(curr_items, Stats) + AccItems,
                 extract_interesting_stat(ops, Stats) + AccOps,
                 extract_interesting_stat(ep_bg_fetched, Stats) + AccFetches,
                 extract_interesting_stat(couch_docs_actual_disk_size, Stats) +
                     extract_interesting_stat(couch_views_actual_disk_size, Stats) + AccDisk,
                 extract_interesting_stat(couch_docs_data_size, Stats) + AccData}
        end, {0, 0, 0, 0, 0, 0}, grab_latest_bucket_stats(BucketName, Nodes)).
  
  
  
  last_memcached_sample(BucketName, Nodes) ->
      {MemUsed, CurrItems, Ops, CmdGet, GetHits}
          = lists:foldl(
              fun ({_, Stats},
                   {AccMem, AccItems, AccOps, AccGet, AccGetHits}) ->
                      {extract_interesting_stat(mem_used, Stats) + AccMem,
                       extract_interesting_stat(curr_items, Stats) + AccItems,
                       extract_interesting_stat(ops, Stats) + AccOps,
                       extract_interesting_stat(cmd_get, Stats) + AccGet,
                       extract_interesting_stat(get_hits, Stats) + AccGetHits}
              end, {0, 0, 0, 0, 0}, grab_latest_bucket_stats(BucketName, Nodes)),
  
      {MemUsed, CurrItems, Ops,
       case CmdGet == 0 of
  