wrong ETA time displayed (< 1min)

Bug #151307 reported by Francois Thunus
2
Affects Status Importance Assigned to Milestone
qBittorrent
Fix Released
Medium
Christophe Dumez

Bug Description

International synopsis: the ETA indicator flashes <1 min when it is obviously impossible. This is not systematic. Concerns RC4 on debian lenny 2007/10/10.
----
l'indicateur de temps restant déconne complètement. Et c'est resté assez longtemps à l'écran pour que
je trouve la touche printscreen :-) (disponible sur demande). Concerne RC4 debian lenny en français.
les torrents 1 et 4 affichent moins d'une minutes, alors qu'il s'agit de
torrents de 700 et 350 mgs respectivement, à 7 et 4 % idem, et qu'ils
descendent lentement à 25 et 15 k/s.

Sans avoir vu le code, et donc sans idée préconçue :-), je dirais que la
variable temps restant est remise à zéro et affichée avant que la valeur
n'ait été recalculée. Mais cette explication ne vaut pas grand chose car
si c'était le cas, ce serait systématique. A moins qu'elle n'ait le
temps d'être affichée que quand le programme est trop occupé par
ailleurs... shot in the dark, comme d'habitude.

Tags: eta
Francois Thunus (thunus)
description: updated
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

I will work on this soon. I think this may be caused by an overflow. I already had a problem with the ETA some time ago and my patch was a bit dirty. It looks like I will have to find a cleaner solution to the problem :) Thank you for the report.

Changed in qbittorrent:
assignee: nobody → hydr0g3n
importance: Undecided → Medium
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Ok. I finished fixing the other bugs I started to work on. I'm on this one now.

Changed in qbittorrent:
status: New → In Progress
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Just a question. Did the torrent for which it happened have filtered files? I have just fixed an ETA calculation problem when the torrent had filtered files. This is probably another bug, but we never know :)

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Ok. I confident that we won't get any overflow anymore in (r1512). If you can test it before rc5 release, it would be nice : just in case :)

Changed in qbittorrent:
status: In Progress → Fix Committed
Revision history for this message
Francois Thunus (thunus) wrote : [Bug 151307] Re: wrong ETA time displayed (< 1min)

On Wed, 10 Oct 2007, Christophe Dumez wrote:

> Ok. I confident that we won't get any overflow anymore in (r1512). If
> you can test it before rc5 release, it would be nice : just in case :)
>
> ** Changed in: qbittorrent
> Status: In Progress => Fix Committed
>
> --
where do I download it ? and most of all, the problem is not constant, it
just happens, sometimes...
you can send a file attached to <email address hidden>
Cheers

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

rc5 is out.

Changed in qbittorrent:
status: Fix Committed → Fix Released
Revision history for this message
Francois Thunus (thunus) wrote :

On Sat, 13 Oct 2007, Christophe Dumez wrote:

>
> rc5 is out.
>
mauvaise nouvelle. Le bug est toujours là...
bonne chasse

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

bad news indeed.

Changed in qbittorrent:
status: Fix Released → New
Revision history for this message
JanCR (jc-reehuis) wrote :

I can confirm that bad news... :(

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Still looking for what's causing this. I have absolutely no idea right now. Code looks good now, I don't think this is caused by an overflow. If you notice something that could help me (anything), please tell me.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Hey i found it :)

The problem came from my userFriendlyDuration() function, not the ETA calculation itself this time.

Fixed in r1531.

Changed in qbittorrent:
status: New → Fix Committed
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

rc6 released.

Changed in qbittorrent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.