This commit is contained in:
dm-mb 2025-04-25 23:13:45 +03:00 committed by GitHub
commit a5d671737a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1595,7 +1595,7 @@ qreal TorrentImpl::popularity() const
// we should use `qreal` as `Rep` to define the `months` duration // we should use `qreal` as `Rep` to define the `months` duration
using days = std::chrono::duration<qreal, std::chrono::days::period>; using days = std::chrono::duration<qreal, std::chrono::days::period>;
const auto activeDays = std::chrono::duration_cast<days>(m_nativeStatus.active_duration).count(); 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) void TorrentImpl::setName(const QString &name)