mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-29 23:05:34 +08:00
15 lines
210 B
Go
15 lines
210 B
Go
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
|
|
}
|