mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 06:13:36 -07:00
fix 2
This commit is contained in:
parent
201923f4f5
commit
a5d671737a
1 changed files with 1 additions and 1 deletions
|
@ -1595,7 +1595,7 @@ qreal TorrentImpl::popularity() const
|
|||
// we should use `qreal` as `Rep` to define the `months` duration
|
||||
using days = std::chrono::duration<qreal, std::chrono::days::period>;
|
||||
const auto activeDays = std::chrono::duration_cast<days>(m_nativeStatus.active_duration).count();
|
||||
return (activeDays > 0) ? (totalUpload() / activeDays) : 0;
|
||||
return (activeDays > 0) ? (totalUpload() / activeDays / 1073741824) : 0;
|
||||
}
|
||||
|
||||
void TorrentImpl::setName(const QString &name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue