mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
committed by
Vladimir Golovnev (Glassez)
parent
ad3348b95f
commit
dbfd830b56
@@ -104,7 +104,7 @@ QVariantMap serialize(const BitTorrent::Torrent &torrent)
|
||||
const qlonglong timeSinceActivity = torrent.timeSinceActivity();
|
||||
return (timeSinceActivity < 0)
|
||||
? Utils::DateTime::toSecsSinceEpoch(torrent.addedTime())
|
||||
: (QDateTime::currentDateTime().toSecsSinceEpoch() - timeSinceActivity);
|
||||
: (QDateTime::currentSecsSinceEpoch() - timeSinceActivity);
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user