Browse Source

- Added some more debug

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
47c1908519
  1. 2
      src/bittorrent.cpp

2
src/bittorrent.cpp

@ -162,6 +162,8 @@ void bittorrent::updateETAs() { @@ -162,6 +162,8 @@ void bittorrent::updateETAs() {
unsigned int nbETAs = listEtas.size();
Q_ASSERT(nbETAs);
foreach(val, listEtas) {
// TODO: Remove this debug when #137223 is fixed
qDebug("old moy: %ld", (long)moy);
moy += (qlonglong)((double)val/(double)nbETAs);
qDebug("ETA: %ld, nbETAs: %d, moy: %ld", (long)val, nbETAs, (long)moy);
Q_ASSERT(moy >= 0);

Loading…
Cancel
Save