VictoriaMetrics/lib/fs/fs_nix.go
Nikolay Khramchikhin 658a05ef0f added openbsd implementations (#790)
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/785

removed fadvise for openbsd, added freespace implemenation for openbsd
2020-09-29 00:43:19 +03:00

10 lines
172 B
Go

// +build linux darwin freebsd
package fs
import "golang.org/x/sys/unix"
func freeSpace(stat unix.Statfs_t) uint64 {
return uint64(stat.Bavail) * uint64(stat.Bsize)
}