mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 10:28:49 -07:00
parent
44bf8cfd27
commit
540518a7b7
@ -78,6 +78,9 @@ func (p *deviceFolderDownloadState) Update(updates []protocol.FileDownloadProgre
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *deviceFolderDownloadState) BytesDownloaded() int64 {
|
func (p *deviceFolderDownloadState) BytesDownloaded() int64 {
|
||||||
|
p.mut.RLock()
|
||||||
|
defer p.mut.RUnlock()
|
||||||
|
|
||||||
var res int64
|
var res int64
|
||||||
for _, state := range p.files {
|
for _, state := range p.files {
|
||||||
// BlockSize is a new field introduced in 1.4.1, thus a fallback
|
// BlockSize is a new field introduced in 1.4.1, thus a fallback
|
||||||
|
Loading…
Reference in New Issue
Block a user