mirror of
https://github.com/restic/restic.git
synced 2026-10-27 02:38:54 +00:00
stats: stop progress bar before printing stats (#21843)
This commit is contained in:
1 parent
724b7dc231
commit
0ddd98e03b
1 file changed
+2
@@ -185,6 +185,8 @@ func runStats(ctx context.Context, opts StatsOptions, gopts global.Options, args
|
||||
stats.CompressionSpaceSaving = (1 - float64(stats.TotalSize)/float64(stats.TotalUncompressedSize)) * 100
|
||||
}
|
||||
}
|
||||
// stop progress bar to prevent mangled output
|
||||
updater.Done()
|
||||
|
||||
if gopts.JSON {
|
||||
err = json.NewEncoder(gopts.Term.OutputWriter()).Encode(stats)
|
||||
|
||||
Reference in new issue
Block a user