Fix partition efficiency metric calculation.