mirror of
https://github.com/restic/restic.git
synced 2026-05-30 05:45:23 +00:00
ui/progress: don't print progress on non-interactive terminals
This reverts to the old behavior of not printing progress updates on non-interactive terminals. It was accidentally changed in #3058.
This commit is contained in:
@@ -17,7 +17,7 @@ func newProgressMax(show bool, max uint64, description string) *progress.Counter
|
||||
|
||||
interval := time.Second / 60
|
||||
if !stdoutIsTerminal() {
|
||||
interval = time.Second
|
||||
interval = 0
|
||||
} else {
|
||||
fps, err := strconv.ParseInt(os.Getenv("RESTIC_PROGRESS_FPS"), 10, 64)
|
||||
if err == nil && fps >= 1 {
|
||||
|
||||
Reference in New Issue
Block a user