mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 15:17:25 +00:00
Fix division by zero (fixes #2373)
This commit is contained in:
parent
2972472179
commit
29343aec3a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user