mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
freebsd has fs.Bavail as int64
fix freebsd building https://github.com/seaweedfs/seaweedfs/actions/runs/13380531394/job/37368195169
This commit is contained in:
@@ -20,7 +20,7 @@ func fillInDiskStatus(disk *volume_server_pb.DiskStatus) {
|
||||
// fs.Bfree: Number of free blocks
|
||||
// fs.Bavail: Number of free blocks for unprivileged users
|
||||
// disk.Free = fs.Bfree * uint64(fs.Bsize)
|
||||
disk.Free = fs.Bavail * uint64(fs.Bsize)
|
||||
disk.Free = uint64(fs.Bavail) * uint64(fs.Bsize)
|
||||
disk.Used = disk.All - disk.Free
|
||||
disk.PercentFree = float32((float64(disk.Free) / float64(disk.All)) * 100)
|
||||
disk.PercentUsed = float32((float64(disk.Used) / float64(disk.All)) * 100)
|
||||
|
Reference in New Issue
Block a user