Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 14 lines (10 sloc) 0.201 kb
8bca46f @dustin Send up free space from nodes.
dustin authored
1 // +build !windows
2
3 package main
4
5 import (
6 "syscall"
7 )
8
9 func filesystemFree() (uint64, error) {
10 fs := syscall.Statfs_t{}
11 err := syscall.Statfs(*root, &fs)
12 return fs.Bfree * uint64(fs.Bsize), err
13 }
Something went wrong with that request. Please try again.