more p2p progress meters
Display progress meter on send and receive from remote. Added a new hGetMetered that can read an exact number of bytes (or less), updating a meter as it goes. This commit was sponsored by Andreas on Patreon.
This commit is contained in:
parent
f3a3dc14ec
commit
ad5ef51040
5 changed files with 45 additions and 27 deletions
|
@ -193,7 +193,7 @@ store _r info h = fileStorer $ \k f p -> do
|
|||
uploadid <- S3.imurUploadId <$> sendS3Handle h startreq
|
||||
|
||||
-- The actual part size will be a even multiple of the
|
||||
-- 32k chunk size that hGetUntilMetered uses.
|
||||
-- 32k chunk size that lazy ByteStrings use.
|
||||
let partsz' = (partsz `div` toInteger defaultChunkSize) * toInteger defaultChunkSize
|
||||
|
||||
-- Send parts of the file, taking care to stream each part
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue