Avoid a weird spike in average frequency at startup.
Round frequency calculation up to nearest whole number.