Improved deduction of PWX recording interval

Fixes #533.