Limit progress bar updates to once per second on non-terminal outputs
Limit progress bar updates to once per second on non-terminal outputs

The code accidentally checked whether stdin is a terminal instead of
stdout, the former is not relevant here as the output is printed on
stdout.

restic/restic,restic/restic