Fix device sync percentage (fixes #161).