Improve speed reporting

This commit is contained in:
Xpl0itU 2024-04-03 17:56:01 +02:00
parent 461d6f4a84
commit e143f8531d
2 changed files with 49 additions and 8 deletions

View file

@ -43,7 +43,7 @@ func downloadFile(ctx context.Context, progressReporter ProgressReporter, client
filePath := filepath.Base(dstPath)
startTime := time.Now()
ticker := time.NewTicker(250 * time.Millisecond)
ticker := time.NewTicker(50 * time.Millisecond)
defer ticker.Stop()
isError := false