Revision e6b8d02d lib/masterd/instance.py
b/lib/masterd/instance.py | ||
---|---|---|
623 | 623 |
"""Formats progress information for user consumption |
624 | 624 |
|
625 | 625 |
""" |
626 |
(mbytes, throughput, percent, _) = progress
|
|
626 |
(mbytes, throughput, percent, eta) = progress
|
|
627 | 627 |
|
628 | 628 |
parts = [ |
629 | 629 |
utils.FormatUnit(mbytes, "h"), |
... | ... | |
635 | 635 |
if percent is not None: |
636 | 636 |
parts.append("%d%%" % percent) |
637 | 637 |
|
638 |
# TODO: Format ETA |
|
638 |
if eta is not None: |
|
639 |
parts.append("ETA %s" % utils.FormatSeconds(eta)) |
|
639 | 640 |
|
640 | 641 |
return utils.CommaJoin(parts) |
641 | 642 |
|
Also available in: Unified diff