lib/config, lib/model: Use path from locations to check disk space for db (#5525)

This commit is contained in:
Simon Frei
2019-02-12 13:25:11 +01:00
committed by Audrius Butkevicius
parent d85ef949be
commit 4299af1c63
4 changed files with 8 additions and 19 deletions

View File

@@ -278,7 +278,7 @@ func (f *FolderConfiguration) CheckAvailableSpace(req int64) error {
}
usage.Free -= req
if usage.Free > 0 {
if err := checkFreeSpace(f.MinDiskFree, usage); err == nil {
if err := CheckFreeSpace(f.MinDiskFree, usage); err == nil {
return nil
}
}