Emits a lot of 'progress' signals

Bug #1379026 reported by Charles Kerr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-download-manager (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

While testing indicator-transfer for bug #1378941, I found that ubuntu-download-manager broadcasts a LOT of 'progress' signals.

A download for 7digital.com sent out ~10 progress signals per second, which was the root cause of #1378941 (though there was enough blame to spread around, indicator-transfer amplified these signals by updating its own menus and action states on the bus in response :-)

Is this 'progress' flood intentional and/or necessary?

Charles Kerr (charlesk)
summary: - emits a LOT of 'progress' signals
+ Emits a lot of 'progress' signals
Revision history for this message
Manuel de la Peña (mandel) wrote :

At the moment we are sending the progress signal every time the buffer from the reply is written to disk, so atm, it is intentional but I can certainly add some euristic.. maybe just send the progress after x bytes or x % (we cannot do a single value since we want to send progress for small files).

What do you think would be the best approach regarding the transfer indicator?

Changed in ubuntu-download-manager:
status: New → Triaged
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

As part of the specification of the toolkit progress indicators, I've suggested that any change to a progress bar's value should be animated over 500 ms. If so, updating the value more than twice a second would barely be noticable.

Instead, or in addition, an app might display precise download progress as numbers. But except for highly predictable sequences (like a stopwatch), it's generally poor practice to change text like that more than about twice a second, because it's too difficult to read.

If both of those are correct, then there would be no need for the download service to send more than two progress signals per second.

Changed in ubuntu-download-manager:
assignee: Manuel de la Peña (mandel) → nobody
Changed in ubuntu-download-manager (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
no longer affects: ubuntu-download-manager
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.