Merge pull request #941 from filecoin-project/fix/storage-builder-cast

fix(sectorbuilder): always cast fsstat.Bsize
This commit is contained in:
Whyrusleeping 2019-12-16 23:42:25 +01:00 committed by GitHub
commit 7e431f523b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()