From 32acb6626937fde9528e9e632d8b270d20ce5eda Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Mon, 16 Dec 2019 22:07:14 +0100 Subject: [PATCH] fix(sectorbuilder): always cast fsstat.Bsize fixes compilation issue under macos --- lib/sectorbuilder/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sectorbuilder/fs.go b/lib/sectorbuilder/fs.go index ac8de3a4d..c12935b96 100644 --- a/lib/sectorbuilder/fs.go +++ b/lib/sectorbuilder/fs.go @@ -86,7 +86,7 @@ func (f *fs) reserve(typ dataType, size uint64) error { return err } - avail := int64(fsstat.Bavail) * fsstat.Bsize + avail := int64(fsstat.Bavail) * int64(fsstat.Bsize) avail -= f.reservedBytes()