Replace "seeding_duration" with "finished_duration" everywhere

Closes #10223.
PR #13601.
This commit is contained in:
thalieht
2022-01-07 09:22:51 +02:00
committed by GitHub
parent d6fc020ba7
commit d3bdeaab3f
8 changed files with 7 additions and 15 deletions

View File

@@ -439,7 +439,7 @@ void PropertiesWidget::loadDynamicData()
if (m_torrent->isSeed())
elapsedString = tr("%1 (seeded for %2)", "e.g. 4m39s (seeded for 3m10s)")
.arg(Utils::Misc::userFriendlyDuration(m_torrent->activeTime())
, Utils::Misc::userFriendlyDuration(m_torrent->seedingTime()));
, Utils::Misc::userFriendlyDuration(m_torrent->finishedTime()));
else
elapsedString = Utils::Misc::userFriendlyDuration(m_torrent->activeTime());
m_ui->labelElapsedVal->setText(elapsedString);

View File

@@ -390,7 +390,7 @@ QString TransferListModel::displayValue(const BitTorrent::Torrent *torrent, cons
case TR_AMOUNT_LEFT:
return unitString(torrent->remainingSize());
case TR_TIME_ELAPSED:
return timeElapsedString(torrent->activeTime(), torrent->seedingTime());
return timeElapsedString(torrent->activeTime(), torrent->finishedTime());
case TR_SAVE_PATH:
return Utils::Fs::toNativePath(torrent->savePath());
case TR_COMPLETED:
@@ -459,7 +459,7 @@ QVariant TransferListModel::internalValue(const BitTorrent::Torrent *torrent, co
case TR_AMOUNT_LEFT:
return torrent->remainingSize();
case TR_TIME_ELAPSED:
return !alt ? torrent->activeTime() : torrent->seedingTime();
return !alt ? torrent->activeTime() : torrent->finishedTime();
case TR_SAVE_PATH:
return Utils::Fs::toNativePath(torrent->savePath());
case TR_COMPLETED: