Show progress immediately when copying files (#2093)
This commit is contained in:
1 parent
651264e4de
commit
f716ce1b0f
3 files changed
+20
-3
No files matched your search
@@ -963,8 +963,12 @@ func (ui *ui) drawRuler(nav *nav) {
|
||||
|
||||
progress := []string{}
|
||||
|
||||
if nav.copyTotal > 0 {
|
||||
progress = append(progress, fmt.Sprintf("[%d%%]", nav.copyBytes*100/nav.copyTotal))
|
||||
if nav.copyJobs > 0 {
|
||||
if nav.copyTotal == 0 {
|
||||
progress = append(progress, fmt.Sprintf("[0%%]"))
|
||||
} else {
|
||||
progress = append(progress, fmt.Sprintf("[%d%%]", nav.copyBytes*100/nav.copyTotal))
|
||||
}
|
||||
}
|
||||
|
||||
if nav.moveTotal > 0 {
|
||||
|
||||
Reference in new issue
Block a user