Browse Source

Fix total percentage calculation

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
e20fcebe96
1 changed files with 1 additions and 3 deletions
  1. 4
      youtube_dl_gui/mainframe.py

4
youtube_dl_gui/mainframe.py

@ -425,11 +425,9 @@ class MainFrame(wx.Frame):
# TODO Store percentage as float in the DownloadItem?
# TODO DownloadList keep track for each item stage?
# TODO Should i count the paused items?
# total_percentage += queued * 0.0% + paused * 0.0% + completed * 100.0% + error * 100.0%
total_percentage += completed * 100.0 + error * 100.0
total_percentage /= len(self._download_list)
total_percentage /= active + completed + error
msg = self.URL_REPORT_MSG.format(total_percentage, queued, paused, active, completed, error)
self._status_bar_write(msg)

Loading…
Cancel
Save