VictoriaMetrics/lib/fs/fs_nix.go
2021-02-27 01:09:37 +02:00

11 lines
177 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)
}