- Optimized function that transform a number of seconds to a duration(days, hours, minutes, secs)

- Improved ETA calculation to avoid overflows (Added asserts to make sure it doesn't happen)
This commit is contained in:
Christophe Dumez
2007-08-28 18:44:54 +00:00
parent 105563ac5a
commit 21908e0a03
5 changed files with 42 additions and 30 deletions

View File

@@ -49,8 +49,8 @@ class bittorrent : public QObject{
QString defaultSavePath;
QStringList torrentsToPauseAfterChecking;
QStringList reloadingTorrents;
QHash<QString, QList<long> > ETAstats;
QHash<QString, long> ETAs;
QHash<QString, QList<qlonglong> > ETAstats;
QHash<QString, qlonglong> ETAs;
QHash<QString, QPair<size_type,size_type> > ratioData;
QTimer *ETARefresher;
QStringList fullAllocationModeList;