aboutsummaryrefslogtreecommitdiff
path: root/P2P
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-12-07 15:36:39 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-12-07 15:36:39 -0400
commit5c8851678fef29be0b3dcf0451107b589b188264 (patch)
tree1e3046ddb61246232a278b6a8653fb8c33b93212 /P2P
parentd467f482d43ed0e9a8068e6df3bff1acaffb087f (diff)
fix math error that caused resumes to always fail
Diffstat (limited to 'P2P')
-rw-r--r--P2P/Annex.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/P2P/Annex.hs b/P2P/Annex.hs
index 1ef54de1d..7e07038d3 100644
--- a/P2P/Annex.hs
+++ b/P2P/Annex.hs
@@ -125,4 +125,4 @@ runLocal runmode runner a = case a of
hSeek h AbsoluteSeek o
L.hPut h b
sz <- getFileSize dest
- return (toInteger sz == l)
+ return (toInteger sz == l + o)