fix legacy calculation of average xdcr rate