mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
The types of fields in syscall.Statfs_t varies between platforms. fs.Bavail is uint64 on Linux and int64 on FreeBSD. This is the opposite way around to fs.Bsize. For now, just coerce the Bavail to be uint64. If the VFS layer might return -1 for one or the other of these then these casts will be problematic and we'll need more safeguards.
1.1 KiB
1.1 KiB