Add "total-size" field to --json-progress output.

This commit is contained in:
Joey Hess 2016-09-29 16:29:54 -04:00
parent 7cae6c746c
commit 161d891508
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
3 changed files with 10 additions and 0 deletions

View file

@ -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.