lib/model: Track puller creation times (fixes #3145)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3150
This commit is contained in:
Audrius Butkevicius
2016-05-22 10:16:09 +00:00
committed by Jakob Borg
parent 44290a66b7
commit 00be2bf18d
4 changed files with 21 additions and 3 deletions

View File

@@ -1011,6 +1011,7 @@ func (f *rwFolder) handleFile(file protocol.FileInfo, copyChan chan<- copyBlocks
version: curFile.Version,
mut: sync.NewRWMutex(),
sparse: f.allowSparse,
created: time.Now(),
}
l.Debugf("%v need file %s; copy %d, reused %v", f, file.Name, len(blocks), reused)