commit: Update window-size computation.