mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
- Added some more debug
This commit is contained in:
parent
e1ead940be
commit
47c1908519
1 changed files with 2 additions and 0 deletions
|
@ -162,6 +162,8 @@ void bittorrent::updateETAs() {
|
||||||
unsigned int nbETAs = listEtas.size();
|
unsigned int nbETAs = listEtas.size();
|
||||||
Q_ASSERT(nbETAs);
|
Q_ASSERT(nbETAs);
|
||||||
foreach(val, listEtas) {
|
foreach(val, listEtas) {
|
||||||
|
// TODO: Remove this debug when #137223 is fixed
|
||||||
|
qDebug("old moy: %ld", (long)moy);
|
||||||
moy += (qlonglong)((double)val/(double)nbETAs);
|
moy += (qlonglong)((double)val/(double)nbETAs);
|
||||||
qDebug("ETA: %ld, nbETAs: %d, moy: %ld", (long)val, nbETAs, (long)moy);
|
qDebug("ETA: %ld, nbETAs: %d, moy: %ld", (long)val, nbETAs, (long)moy);
|
||||||
Q_ASSERT(moy >= 0);
|
Q_ASSERT(moy >= 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue