Correct StringCounter::calc_avg()