seaweedfs/go/stats/disk.go

17 lines
221 B
Go
Raw Normal View History

package stats
import ()
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
}