VictoriaMetrics/lib/fs/fs_openbsd.go

10 lines
148 B
Go
Raw Normal View History

package fs
import (
"golang.org/x/sys/unix"
)
func freeSpace(stat unix.Statfs_t) uint64 {
return uint64(stat.F_bavail) * uint64(stat.F_bsize)
}