seaweedfs/weed/stats/disk.go

15 lines
210 B
Go
Raw Normal View History

package stats
type DiskStatus struct {
2014-03-26 20:22:27 +00:00
Dir string
All uint64
Used uint64
Free uint64
}
2014-03-26 20:22:27 +00:00
func NewDiskStatus(path string) (disk *DiskStatus) {
disk = &DiskStatus{Dir: path}
disk.fillInStatus()
return
}