mirror of
https://github.com/restic/restic.git
synced 2025-12-12 06:01:50 +00:00
Reduce terminal progress fps to 10
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
// or if unset returns an interval for 60fps on interactive terminals and 0 (=disabled)
|
||||
// for non-interactive terminals or when run using the --quiet flag
|
||||
func CalculateProgressInterval(show bool, json bool, canUpdateStatus bool) time.Duration {
|
||||
interval := time.Second / 60
|
||||
interval := time.Second / 10
|
||||
fps, err := strconv.ParseFloat(os.Getenv("RESTIC_PROGRESS_FPS"), 64)
|
||||
if err == nil && fps > 0 {
|
||||
if fps > 60 {
|
||||
|
||||
Reference in New Issue
Block a user