fixed finished-time calculation

This commit is contained in:
arvidn 2017-01-24 19:12:47 -05:00 committed by Arvid Norberg
parent 62db98ca09
commit b19cb7bd87
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
* fixed finished-time calculation
* add missing min_memory_usage() and high_performance_seed() settings presets to python
* fix stat cache issue that sometimes would produce incorrect resume data
* storage optimization to peer classes

View File

@ -9535,7 +9535,7 @@ namespace libtorrent
}
m_became_seed = clamped_subtract(m_became_seed, seconds);
if (m_finished_time < seconds && is_finished())
if (m_became_finished < seconds && is_finished())
{
int lost_seconds = seconds - m_became_finished;
m_finished_time += lost_seconds;