fix meter update

This commit is contained in:
Joey Hess 2014-08-09 16:49:31 -04:00
parent 3659cb9efb
commit 5ee72b1bae

View file

@ -164,7 +164,7 @@ retrieve h = fileRetriever $ \f k p -> liftIO $ runResourceT $ do
case mbs of
Nothing -> return ()
Just bs -> do
let sofar' = sofar -- addBytesProcessed $ S.length bs
let sofar' = addBytesProcessed sofar (S.length bs)
liftIO $ do
void $ meterupdate sofar'
S.hPut fh bs