Merge pull request #3715 from learner0810/fix-operator-download-log
Optimize download percentage log
This commit is contained in:
commit
912ba8eac4
|
@ -35,7 +35,7 @@ func (d *Downloader) Read(p []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue