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

import ()

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

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