mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
ssh: Factor out progress % calculation.
* guix/ssh.scm (notify-transfer-progress): Trust its % argument.
This commit is contained in:
parent
af80906345
commit
9aa750776a
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ (define (notify-transfer-progress item port sizes total sent)
|
|||
(define (display-bar %)
|
||||
(erase-current-line port)
|
||||
(format port "~3@a% ~a"
|
||||
(inexact->exact (round (* 100. (/ sent total))))
|
||||
(inexact->exact (round %))
|
||||
(progress-bar % (- (max (current-terminal-columns) 5) 5)))
|
||||
(force-output port))
|
||||
|
||||
|
|
Loading…
Reference in a new issue