period_size used the wrong unit, and even if the unit had been correct, was assigned the wrong value. Probably fixes #4642.