From 170e430b8c5a137ecd2b86f87cd710c6edc4721e Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 15 Oct 2008 20:55:20 +0000 Subject: [PATCH] lt sync 2803 --- libtorrent/src/storage.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libtorrent/src/storage.cpp b/libtorrent/src/storage.cpp index c21f68fbb..d87fc2500 100755 --- a/libtorrent/src/storage.cpp +++ b/libtorrent/src/storage.cpp @@ -396,8 +396,11 @@ namespace libtorrent + " bytes"; return false; } - if ((compact_mode && time != s->second) - || (!compact_mode && time < s->second)) + // allow one second 'slack', because of FAT volumes + // in sparse mode, allow the files to be more recent + // than the resume data, but only by 5 minutes + if ((compact_mode && (time > s->second + 1 || time < s->second - 1)) || + (!compact_mode && (time > s->second + 5 * 60) || time < s->second - 1)) { if (error) *error = "timestamp mismatch for file '" + i->path.native_file_string()