Add "total-size" field to --json-progress output.
This commit is contained in:
parent
7cae6c746c
commit
161d891508
3 changed files with 10 additions and 0 deletions
|
@ -104,6 +104,7 @@ progress maction size bytesprocessed = emit $ case maction of
|
|||
Object o = object
|
||||
[ "byte-progress" .= n
|
||||
, "percent-progress" .= showPercentage 2 (percentage size n)
|
||||
, "total-size" .= size
|
||||
]
|
||||
|
||||
-- A value that can be displayed either normally, or as JSON.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue