fix math error that caused resumes to always fail

This commit is contained in:
Joey Hess 2016-12-07 15:36:39 -04:00
parent db79b69aa0
commit 0541f19bea
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
2 changed files with 3 additions and 2 deletions

View file

@ -125,4 +125,4 @@ runLocal runmode runner a = case a of
hSeek h AbsoluteSeek o hSeek h AbsoluteSeek o
L.hPut h b L.hPut h b
sz <- getFileSize dest sz <- getFileSize dest
return (toInteger sz == l) return (toInteger sz == l + o)

View file

@ -6,8 +6,9 @@ Current todo list:
* copy --to peer seems to make the remotedaemon buffer the content in * copy --to peer seems to make the remotedaemon buffer the content in
memory, more than I'd expect. memory, more than I'd expect.
* There are no error messages when things fail. Need to convert P2P runner
from Maybe to Either String.
* update progress logs in remotedaemon send/receive * update progress logs in remotedaemon send/receive
* Resuming an interrupted download fails at the end.
* Think about locking some more. What happens if the connection to the peer * Think about locking some more. What happens if the connection to the peer
is dropped while we think we're locking content there from being dropped? is dropped while we think we're locking content there from being dropped?
* merge to master * merge to master