Save statistics every 15min and only if there was new traffic. Fixes #1288 and partially #1272.

This commit is contained in:
sledgehammer999
2014-01-21 00:10:45 +02:00
parent 3ee5c89856
commit 4d3672f894
2 changed files with 43 additions and 9 deletions

View File

@@ -73,8 +73,10 @@ private:
// Will overflow at 15.9 EiB
quint64 alltimeUL;
quint64 alltimeDL;
quint64 sessionUL;
quint64 sessionDL;
qint64 sessionUL;
qint64 sessionDL;
mutable qint64 lastWrite;
mutable bool dirty;
};
#endif // TORRENTSPEEDMONITOR_H