From a5d671737a2feb298b785a685294e3244578781c Mon Sep 17 00:00:00 2001 From: dm-mb <93314275+dm-mb@users.noreply.github.com> Date: Fri, 25 Apr 2025 23:13:45 +0300 Subject: [PATCH] fix 2 --- src/base/bittorrent/torrentimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/torrentimpl.cpp b/src/base/bittorrent/torrentimpl.cpp index c52f7302b..d2c239920 100644 --- a/src/base/bittorrent/torrentimpl.cpp +++ b/src/base/bittorrent/torrentimpl.cpp @@ -1595,7 +1595,7 @@ qreal TorrentImpl::popularity() const // we should use `qreal` as `Rep` to define the `months` duration using days = std::chrono::duration; const auto activeDays = std::chrono::duration_cast(m_nativeStatus.active_duration).count(); - return (activeDays > 0) ? (totalUpload() / activeDays) : 0; + return (activeDays > 0) ? (totalUpload() / activeDays / 1073741824) : 0; } void TorrentImpl::setName(const QString &name)