1
0
mirror of https://github.com/seaweedfs/seaweedfs.git synced 2025-01-06 10:17:53 +08:00
seaweedfs/go/stats/disk.go

15 lines
210 B
Go
Raw Normal View History

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