Browse Source

Fix condition checking in statistics saving.

adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
0d139234fe
  1. 2
      src/qtlibtorrent/torrentspeedmonitor.cpp

2
src/qtlibtorrent/torrentspeedmonitor.cpp

@ -199,7 +199,7 @@ void TorrentSpeedMonitor::getSamples() @@ -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…
Cancel
Save