mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Use appropriate type
This commit is contained in:
parent
516c968373
commit
4880dc812c
3 changed files with 5 additions and 5 deletions
|
@ -437,12 +437,12 @@ void PropertiesWidget::loadDynamicData()
|
|||
.arg(QString::number(m_torrent->leechsCount())
|
||||
, QString::number(m_torrent->totalLeechersCount())));
|
||||
|
||||
const int dlDuration = m_torrent->activeTime() - m_torrent->finishedTime();
|
||||
const qlonglong dlDuration = m_torrent->activeTime() - m_torrent->finishedTime();
|
||||
const QString dlAvg = Utils::Misc::friendlyUnit((m_torrent->totalDownload() / ((dlDuration == 0) ? -1 : dlDuration)), true);
|
||||
m_ui->labelDlSpeedVal->setText(tr("%1 (%2 avg.)", "%1 and %2 are speed rates, e.g. 200KiB/s (100KiB/s avg.)")
|
||||
.arg(Utils::Misc::friendlyUnit(m_torrent->downloadPayloadRate(), true), dlAvg));
|
||||
|
||||
const int ulDuration = m_torrent->activeTime();
|
||||
const qlonglong ulDuration = m_torrent->activeTime();
|
||||
const QString ulAvg = Utils::Misc::friendlyUnit((m_torrent->totalUpload() / ((ulDuration == 0) ? -1 : ulDuration)), true);
|
||||
m_ui->labelUpSpeedVal->setText(tr("%1 (%2 avg.)", "%1 and %2 are speed rates, e.g. 200KiB/s (100KiB/s avg.)")
|
||||
.arg(Utils::Misc::friendlyUnit(m_torrent->uploadPayloadRate(), true), ulAvg));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue