Audrius Butkevicius 10 лет назад
Родитель
Сommit
29343aec3a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/scanner/walk.go

+ 1 - 1
lib/scanner/walk.go

@@ -141,7 +141,7 @@ func (w *Walker) Walk() (chan protocol.FileInfo, error) {
 	// which it receives the files we ask it to hash.
 	go func() {
 		var filesToHash []protocol.FileInfo
-		var total, progress int64
+		var total, progress int64 = 1, 0
 		for file := range toHashChan {
 			filesToHash = append(filesToHash, file)
 			total += int64(file.CachedSize)