mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-07-15 16:12:46 +02:00
glide has its own requirements. My previous workaround caused me some code checkin errors. Need to fix this.
14 lines
210 B
Go
14 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
|
|
}
|