mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Move increment out of loop
This commit is contained in:
committed by
sledgehammer999
parent
a5a242377b
commit
e62f9ef56a
@@ -2916,10 +2916,8 @@ void SessionImpl::saveResumeData()
|
|||||||
saveTorrentsQueue();
|
saveTorrentsQueue();
|
||||||
|
|
||||||
for (const TorrentImpl *torrent : asConst(m_torrents))
|
for (const TorrentImpl *torrent : asConst(m_torrents))
|
||||||
{
|
|
||||||
torrent->nativeHandle().save_resume_data(lt::torrent_handle::only_if_modified);
|
torrent->nativeHandle().save_resume_data(lt::torrent_handle::only_if_modified);
|
||||||
++m_numResumeData;
|
m_numResumeData += m_torrents.size();
|
||||||
}
|
|
||||||
|
|
||||||
QElapsedTimer timer;
|
QElapsedTimer timer;
|
||||||
timer.start();
|
timer.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user