mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
Fix condition checking in statistics saving.
This commit is contained in:
parent
441d1d08ba
commit
0d139234fe
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue