Improve performance of getting torrent numbers via WebAPI

PR #19919.
This commit is contained in:
Chocobo1 2023-11-12 17:12:02 +08:00 committed by GitHub
parent b67da4bebe
commit 9d6d3a30eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -236,7 +236,7 @@ namespace
void TorrentsController::countAction()
{
setResult(QString::number(BitTorrent::Session::instance()->torrents().count()));
setResult(QString::number(BitTorrent::Session::instance()->torrentsCount()));
}
// Returns all the torrents in JSON format.