mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-26 22:44:36 +00:00
- BUGFIX: Fixed overflow in ratio
This commit is contained in:
parent
3e350c5935
commit
c0ffb8fa5c
2
TODO
2
TODO
@ -82,4 +82,6 @@ LANGUAGES UPDATED:
|
|||||||
- Bulgarian *BETA6*
|
- Bulgarian *BETA6*
|
||||||
|
|
||||||
beta7->rc1 changelog:
|
beta7->rc1 changelog:
|
||||||
|
- BUGFIX: Fixed overflow in ratio
|
||||||
|
- BUGFIX: Added -DNDEBUG flag to fix compilation with libtorrent svn
|
||||||
- COSMETIC: Progress bar text now uses style foreground color
|
- COSMETIC: Progress bar text now uses style foreground color
|
||||||
|
@ -749,7 +749,11 @@ void bittorrent::loadDownloadUploadForTorrent(QString hash) {
|
|||||||
QPair<size_type,size_type> downUp;
|
QPair<size_type,size_type> downUp;
|
||||||
downUp.first = (size_type)data_list.at(0).toLongLong();
|
downUp.first = (size_type)data_list.at(0).toLongLong();
|
||||||
downUp.second = (size_type)data_list.at(1).toLongLong();
|
downUp.second = (size_type)data_list.at(1).toLongLong();
|
||||||
Q_ASSERT(downUp.first >= 0 && downUp.second >= 0);
|
if(downUp.first < 0 || downUp.second < 0) {
|
||||||
|
qDebug("** Overflow in ratio!!! fixing...");
|
||||||
|
downUp.first = 0;
|
||||||
|
downUp.second = 0;
|
||||||
|
}
|
||||||
ratioData[hash] = downUp;
|
ratioData[hash] = downUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user