Closed Bug 1726429 Opened 4 years ago Closed 4 years ago

Download activity uses the wrong numbers for its progress bar

Categories

(Thunderbird :: Mail Window Front End, defect)

defect

Tracking

(thunderbird_esr91 wontfix, thunderbird92 affected)

RESOLVED FIXED
93 Branch
Tracking Status
thunderbird_esr91 --- wontfix
thunderbird92 --- affected

People

(Reporter: henry-x, Assigned: henry-x)

Details

Attachments

(1 file)

From https://phabricator.services.mozilla.com/D119289#inline-674154

The following line is using the wrong numbers

https://searchfox.org/comm-central/rev/bdf1197238d795a88782e8ef8bf12facc7560247/mail/components/activity/modules/autosync.jsm#352

The msg message string uses syncItem.totalDownloaded / syncItem.pendingMsgCount, whilst the progress bar uses numOfMessages / totalPending.

pendingMsgCount is whatever the maximum value of totalPending has been (line 321), but numOfMessages is how much we just added to the totalDownload (line 333), so will usually be less and is the wrong value to use for a percentage.

Target Milestone: --- → 93 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/b2bfce0407ce
Use correct numbers for download activity progress. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: