anchor.diff:       {vb_pending_resident_items_ratio, PendingResRate},
        {avg_disk_update_time, AverageDiskUpdateTime},
        {avg_disk_commit_time, AverageCommitTime},
  -     {avg_bg_wait_time, AverageBgWait},
  -     {replication_wtavg_meta_latency, WtAvgMetaLatency},
  -     {replication_wtavg_docs_latency, WtAvgDocsLatency},
  -     {replication_percent_completeness, PercentCompleteness}].
  +     {avg_bg_wait_time, AverageBgWait}] ++ XDCAllRepStats.
   
   %% converts list of samples to proplist of stat values.
   %%
  
positive.code:                                end
                         end),
  
      WtAvgMetaLatency = Z2(replication_meta_latency_aggr, replication_meta_latency_wt,
                         fun (Total, Count) ->
                                 try Total / Count
                                 catch error:badarith -> 0
                                 end
                         end),
  
      WtAvgDocsLatency = Z2(replication_docs_latency_aggr, replication_docs_latency_wt,
                         fun (Total, Count) ->
                                 try Total / Count
                                 catch error:badarith -> 0
                                 end
                         end),
  
      PercentCompleteness = Z2(replication_docs_checked, replication_changes_left,
                         fun (Checked, Left) ->
                                 try (100 * Checked) / (Checked + Left)
                                 catch error:badarith -> 0
                                 end
                         end),
  
      [{couch_total_disk_size, TotalDisk},
       {couch_docs_fragmentation, DocsFragmentation},
  
negative.code:                                               _ -> undefined
                                            end,
                                     {K, ValR}
                             end, computed_stats_lazy_proplist(BucketName)),
  
      lists:filter(fun ({_, undefined}) -> false;
                       ({_, _}) -> true
  