You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
221 B

  1. package stats
  2. import ()
  3. type DiskStatus struct {
  4. Dir string
  5. All uint64
  6. Used uint64
  7. Free uint64
  8. }
  9. func NewDiskStatus(path string) (disk *DiskStatus) {
  10. disk = &DiskStatus{Dir: path}
  11. disk.fillInStatus()
  12. return
  13. }