summaryrefslogtreecommitdiff
path: root/Messages
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-09-29 16:29:54 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-09-29 16:29:54 -0400
commitaf98c30e60f4b44835c4335c4c169697ba1701e0 (patch)
tree4fc93a74e569fd66191b85e6765809ce7f083f0d /Messages
parenta93b837393b788f9f1655e7766a0d254ecaa4452 (diff)
Add "total-size" field to --json-progress output.
Diffstat (limited to 'Messages')
-rw-r--r--Messages/JSON.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Messages/JSON.hs b/Messages/JSON.hs
index 6c22d9537..fb288b735 100644
--- a/Messages/JSON.hs
+++ b/Messages/JSON.hs
@@ -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.