Merge pull request #3715 from learner0810/fix-operator-download-log

Optimize download percentage log
This commit is contained in:
karmada-bot 2023-06-27 19:46:14 +08:00 committed by GitHub
commit 912ba8eac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func (d *Downloader) Read(p []byte) (n int, err error) {
} }
d.Current += int64(n) d.Current += int64(n)
klog.Info("\rDownloading...[ %.2f%% ]", float64(d.Current*10000/d.Total)/100) klog.Infof("\rDownloading...[ %.2f%% ]", float64(d.Current*10000/d.Total)/100)
return return
} }