relaxed file timestamp requirements to work better with FAT volumes
This commit is contained in:
parent
183040933e
commit
c0df461296
|
@ -396,8 +396,11 @@ namespace libtorrent
|
||||||
+ " bytes";
|
+ " bytes";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ((compact_mode && time != s->second)
|
// allow one second 'slack', because of FAT volumes
|
||||||
|| (!compact_mode && time < s->second))
|
// 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 '"
|
if (error) *error = "timestamp mismatch for file '"
|
||||||
+ i->path.native_file_string()
|
+ i->path.native_file_string()
|
||||||
|
|
Loading…
Reference in New Issue