diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-10-15 22:25:28 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-10-15 22:25:28 -0700 |
| commit | 46eb77f9bb629610fe90b8b9eb4d9fed2e6dda04 (patch) | |
| tree | d06c90b1460710e9b16e49b6b0b6825ec0ea9d1b /weed/stats/disk.go | |
| parent | eec951cad2b276afb1a416152b049e380706ebed (diff) | |
| download | seaweedfs-46eb77f9bb629610fe90b8b9eb4d9fed2e6dda04.tar.xz seaweedfs-46eb77f9bb629610fe90b8b9eb4d9fed2e6dda04.zip | |
move DiskStatus and MemStatus to protobuf
Diffstat (limited to 'weed/stats/disk.go')
| -rw-r--r-- | weed/stats/disk.go | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/weed/stats/disk.go b/weed/stats/disk.go index 46d8c465e..e9d8baedd 100644 --- a/weed/stats/disk.go +++ b/weed/stats/disk.go @@ -1,14 +1,9 @@ package stats -type DiskStatus struct { - Dir string - All uint64 - Used uint64 - Free uint64 -} +import "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb" -func NewDiskStatus(path string) (disk *DiskStatus) { - disk = &DiskStatus{Dir: path} - disk.fillInStatus() +func NewDiskStatus(path string) (disk *volume_server_pb.DiskStatus) { + disk = &volume_server_pb.DiskStatus{Dir: path} + fillInDiskStatus(disk) return } |
