Merge pull request #941 from filecoin-project/fix/storage-builder-cast
fix(sectorbuilder): always cast fsstat.Bsize
This commit is contained in:
commit
7e431f523b
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user