mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
Replace "seeding_duration" with "finished_duration" everywhere
Closes #10223. PR #13601.
This commit is contained in:
@@ -1651,7 +1651,7 @@ void Session::processShareLimits()
|
||||
|
||||
if (torrent->seedingTimeLimit() != Torrent::NO_SEEDING_TIME_LIMIT)
|
||||
{
|
||||
const qlonglong seedingTimeInMinutes = torrent->seedingTime() / 60;
|
||||
const qlonglong seedingTimeInMinutes = torrent->finishedTime() / 60;
|
||||
int seedingTimeLimit = torrent->seedingTimeLimit();
|
||||
if (seedingTimeLimit == Torrent::USE_GLOBAL_SEEDING_TIME)
|
||||
{
|
||||
|
||||
@@ -223,7 +223,6 @@ namespace BitTorrent
|
||||
virtual qlonglong totalUpload() const = 0;
|
||||
virtual qlonglong activeTime() const = 0;
|
||||
virtual qlonglong finishedTime() const = 0;
|
||||
virtual qlonglong seedingTime() const = 0;
|
||||
virtual qlonglong eta() const = 0;
|
||||
virtual QVector<qreal> filesProgress() const = 0;
|
||||
virtual int seedsCount() const = 0;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,6 @@ namespace BitTorrent
|
||||
qlonglong totalUpload() const override;
|
||||
qlonglong activeTime() const override;
|
||||
qlonglong finishedTime() const override;
|
||||
qlonglong seedingTime() const override;
|
||||
qlonglong eta() const override;
|
||||
QVector<qreal> filesProgress() const override;
|
||||
int seedsCount() const override;
|
||||
|
||||
Reference in New Issue
Block a user