mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
committed by
GitHub
parent
e1bd1038c0
commit
15ea836bb9
@@ -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