ssh: Display the size of the store items being sent.
* guix/ssh.scm (send-files): Compute the size of MISSING and display it.
This commit is contained in:
parent
3f8c82e6d3
commit
b90d97ec2e
11
guix/ssh.scm
11
guix/ssh.scm
|
@ -279,10 +279,15 @@ Return the list of store items actually sent."
|
||||||
(remove (cut valid-path? store <>)
|
(remove (cut valid-path? store <>)
|
||||||
',files)))))
|
',files)))))
|
||||||
(count (length missing))
|
(count (length missing))
|
||||||
|
(sizes (map (lambda (item)
|
||||||
|
(path-info-nar-size (query-path-info local item)))
|
||||||
|
missing))
|
||||||
(port (store-import-channel session)))
|
(port (store-import-channel session)))
|
||||||
(format log-port (N_ "sending ~a store item to '~a'...~%"
|
(format log-port (N_ "sending ~a store item (~h MiB) to '~a'...~%"
|
||||||
"sending ~a store items to '~a'...~%" count)
|
"sending ~a store items (~h MiB) to '~a'...~%" count)
|
||||||
count (session-get session 'host))
|
count
|
||||||
|
(inexact->exact (round (/ (reduce + 0 sizes) (expt 2. 20))))
|
||||||
|
(session-get session 'host))
|
||||||
|
|
||||||
;; Send MISSING in topological order.
|
;; Send MISSING in topological order.
|
||||||
(export-paths local missing port)
|
(export-paths local missing port)
|
||||||
|
|
Loading…
Reference in New Issue