mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 16:30:55 +01:00
658a05ef0f
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/785 removed fadvise for openbsd, added freespace implemenation for openbsd
10 lines
172 B
Go
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)
|
|
}
|