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.

14 lines
210 B

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