mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Replace "seeding_duration" with "finished_duration" everywhere
Closes #10223. PR #13601.
This commit is contained in:
@@ -221,7 +221,6 @@ namespace
|
||||
status.flags = params.flags;
|
||||
status.active_duration = lt::seconds {params.active_time};
|
||||
status.finished_duration = lt::seconds {params.finished_time};
|
||||
status.seeding_duration = lt::seconds {params.seeding_time};
|
||||
status.num_complete = params.num_complete;
|
||||
status.num_incomplete = params.num_incomplete;
|
||||
status.all_time_download = params.total_downloaded;
|
||||
@@ -1066,11 +1065,6 @@ qlonglong TorrentImpl::finishedTime() const
|
||||
return lt::total_seconds(m_nativeStatus.finished_duration);
|
||||
}
|
||||
|
||||
qlonglong TorrentImpl::seedingTime() const
|
||||
{
|
||||
return lt::total_seconds(m_nativeStatus.seeding_duration);
|
||||
}
|
||||
|
||||
qlonglong TorrentImpl::eta() const
|
||||
{
|
||||
if (isPaused()) return MAX_ETA;
|
||||
@@ -1099,7 +1093,7 @@ qlonglong TorrentImpl::eta() const
|
||||
|
||||
if (maxSeedingTimeValue >= 0)
|
||||
{
|
||||
seedingTimeEta = (maxSeedingTimeValue * 60) - seedingTime();
|
||||
seedingTimeEta = (maxSeedingTimeValue * 60) - finishedTime();
|
||||
if (seedingTimeEta < 0)
|
||||
seedingTimeEta = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user