On the periodicity of linear and nonlinear oscillatory reconnection