|
@ -68,7 +68,7 @@ func (d *DiskUsages) ToMap() interface{} { |
|
|
return ret |
|
|
return ret |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (d *DiskUsages) ToDiskInfo() (map[string]*master_pb.DiskInfo) { |
|
|
|
|
|
|
|
|
func (d *DiskUsages) ToDiskInfo() map[string]*master_pb.DiskInfo { |
|
|
ret := make(map[string]*master_pb.DiskInfo) |
|
|
ret := make(map[string]*master_pb.DiskInfo) |
|
|
for diskType, diskUsageCounts := range d.usages { |
|
|
for diskType, diskUsageCounts := range d.usages { |
|
|
m := &master_pb.DiskInfo{ |
|
|
m := &master_pb.DiskInfo{ |
|
|