From e26e85b6d6d08a50eba6a6323cc5a81dedbbad42 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 6 Sep 2015 17:11:51 +0200 Subject: [PATCH] Only check pull file size if check is enabled (ref #2241) --- lib/model/rwfolder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/rwfolder.go b/lib/model/rwfolder.go index 898eb0ba..ded491a0 100644 --- a/lib/model/rwfolder.go +++ b/lib/model/rwfolder.go @@ -511,7 +511,7 @@ func (p *rwFolder) pullerIteration(ignores *ignore.Matcher) int { // Check if we are able to store all files on disk. Only perform this // check if there is a minimum free space threshold set on the folder. folderCfg := p.model.cfg.Folders()[p.folder] - if folderCfg.MinDiskFreePct > 0 || pullFileSize > 0 { + if folderCfg.MinDiskFreePct > 0 && pullFileSize > 0 { if free, err := osutil.DiskFreeBytes(folderCfg.Path()); err == nil && free < pullFileSize { l.Warnf(`Folder "%s": insufficient disk space available to pull %d files (%.2f MiB)`, p.folder, changed, float64(pullFileSize)/1024/1024) return 0