1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-10 04:11:16 +00:00

Fix condition checking in statistics saving.

This commit is contained in:
sledgehammer999 2014-01-21 16:56:38 +02:00
parent 441d1d08ba
commit 0d139234fe

View File

@ -199,7 +199,7 @@ void TorrentSpeedMonitor::getSamples()
}
void TorrentSpeedMonitor::saveStats() const {
if (!dirty && !(QDateTime::currentMSecsSinceEpoch() - lastWrite >= 15*60*1000))
if (!(dirty && (QDateTime::currentMSecsSinceEpoch() - lastWrite >= 15*60*1000) ))
return;
QIniSettings s("qBittorrent", "qBittorrent-data");
QVariantHash v;