gui, lib/model: Fix download progress accounting (fixes #5811) (#5815)

This commit is contained in:
Simon Frei
2019-06-30 09:23:47 +02:00
committed by Jakob Borg
parent 43b6ac9501
commit 863fe23347
4 changed files with 76 additions and 75 deletions

View File

@@ -801,7 +801,8 @@ func (m *model) ReceiveOnlyChangedSize(folder string) db.Counts {
return db.Counts{}
}
// NeedSize returns the number and total size of currently needed files.
// NeedSize returns the number of currently needed files and their total size
// minus the amount that has already been downloaded.
func (m *model) NeedSize(folder string) db.Counts {
m.fmut.RLock()
rf, ok := m.folderFiles[folder]