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 Vladimir Golovnev (glassez)
parent 43300d97e2
commit 59d968e116
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

View file

@ -234,7 +234,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.