I looked at the diff between 1.1.0beta3 and 1.1.0rc1, and found the following:
diff -ur qbittorrent-1.1.0beta3/src/qtorrenthandle.cpp
qbittorrent-1.1.0rc1/src/qtorrenthandle.cpp
--- qbittorrent-1.1.0beta3/src/qtorrenthandle.cpp 2008-07-07
11:03:12.000000000 +0200
+++ qbittorrent-1.1.0rc1/src/qtorrenthandle.cpp 2008-07-22 17:38:37.000000000
+0200
@@ -55,7 +55,9 @@
float QTorrentHandle::progress() const {
Q_ASSERT(h.is_valid());
- float progress = h.status().progress;
+ if(!h.status().total_wanted)
+ return 0.;
+ float progress =
(float)h.status().total_wanted_done/(float)h.status().total_wanted;
Q_ASSERT(progress >= 0. && progress <= 1.);
return progress;
}
The progress calculation changed between the two versions, so this looks like a
regression. The patch I sent in the last mail was made against 1.2.0beta1, but
it also applies to 1.1.0rc1; I rebuilt the deb with this patch and it's working
good now.
(And a little correction to the last mail: Of course not every division of two
numbers should give 1 as result, but the result of a number divided by itself
is not always exactly 1.)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]