aboutsummaryrefslogtreecommitdiff
path: root/weed/stats/disk.go
blob: 46d8c465ef37abdf5c2516432387673ac5c2f48c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package stats

type DiskStatus struct {
	Dir  string
	All  uint64
	Used uint64
	Free uint64
}

func NewDiskStatus(path string) (disk *DiskStatus) {
	disk = &DiskStatus{Dir: path}
	disk.fillInStatus()
	return
}