git-annex/P2P
Joey Hess e16b069331
use total size from DATA
Noticed that getting a key whose size is not known resulted in a
progress display that didn't include the percent complete.

Fixed for P2P by making the size sent with DATA be used to update the
meter's total size.

In order for rateLimitMeterUpdate to also learn the total size,
had to make it be passed the Meter, and some other reorg in
Utility.Metered was also done so that --json-progress can construct a
Meter to pass to rateLimitMeterUpdate.

When the fallback rsync is done, the progress display still doesn't
include the percent complete. Only way to fix that seems to be to let rsync
display its output again, but that would conflict with git-annex's
own progress meter, which is also being displayed.

This commit was sponsored by Henrik Riomar on Patreon.
2018-03-12 21:46:58 -04:00
..
Address.hs include tor-annex in hidden service directory names 2016-12-21 14:39:32 -04:00
Annex.hs use total size from DATA 2018-03-12 21:46:58 -04:00
Auth.hs use P2P auth for git-remote-tor-annex 2016-11-30 15:26:55 -04:00
IO.hs move protocol version stuff to the Net free monad 2018-03-12 15:20:51 -04:00
Protocol.hs use total size from DATA 2018-03-12 21:46:58 -04:00