mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-03 07:36:45 +02:00
adjust UI max count
This commit is contained in:
parent
3cdf5945a2
commit
d9e8479c06
|
@ -193,8 +193,7 @@ func (dn *DataNode) ToMap() interface{} {
|
||||||
ret["Volumes"] = dn.GetVolumeCount() + dn.GetSsdVolumeCount()
|
ret["Volumes"] = dn.GetVolumeCount() + dn.GetSsdVolumeCount()
|
||||||
ret["VolumeIds"] = dn.GetVolumeIds()
|
ret["VolumeIds"] = dn.GetVolumeIds()
|
||||||
ret["EcShards"] = dn.GetEcShardCount()
|
ret["EcShards"] = dn.GetEcShardCount()
|
||||||
ret["Max"] = dn.GetMaxVolumeCount()
|
ret["Max"] = dn.GetMaxVolumeCount() + dn.GetMaxSsdVolumeCount()
|
||||||
ret["MaxSsd"] = dn.GetMaxSsdVolumeCount()
|
|
||||||
ret["Free"] = dn.FreeSpace()
|
ret["Free"] = dn.FreeSpace()
|
||||||
ret["PublicUrl"] = dn.PublicUrl
|
ret["PublicUrl"] = dn.PublicUrl
|
||||||
return ret
|
return ret
|
||||||
|
|
|
@ -4,8 +4,7 @@ import "github.com/chrislusf/seaweedfs/weed/pb/master_pb"
|
||||||
|
|
||||||
func (t *Topology) ToMap() interface{} {
|
func (t *Topology) ToMap() interface{} {
|
||||||
m := make(map[string]interface{})
|
m := make(map[string]interface{})
|
||||||
m["Max"] = t.GetMaxVolumeCount()
|
m["Max"] = t.GetMaxVolumeCount() + t.GetMaxSsdVolumeCount()
|
||||||
m["MaxSsd"] = t.GetMaxSsdVolumeCount()
|
|
||||||
m["Free"] = t.FreeSpace()
|
m["Free"] = t.FreeSpace()
|
||||||
var dcs []interface{}
|
var dcs []interface{}
|
||||||
for _, c := range t.Children() {
|
for _, c := range t.Children() {
|
||||||
|
@ -30,8 +29,7 @@ func (t *Topology) ToMap() interface{} {
|
||||||
|
|
||||||
func (t *Topology) ToVolumeMap() interface{} {
|
func (t *Topology) ToVolumeMap() interface{} {
|
||||||
m := make(map[string]interface{})
|
m := make(map[string]interface{})
|
||||||
m["Max"] = t.GetMaxVolumeCount()
|
m["Max"] = t.GetMaxVolumeCount() + t.GetMaxSsdVolumeCount()
|
||||||
m["MaxSsd"] = t.GetMaxSsdVolumeCount()
|
|
||||||
m["Free"] = t.FreeSpace()
|
m["Free"] = t.FreeSpace()
|
||||||
dcs := make(map[NodeId]interface{})
|
dcs := make(map[NodeId]interface{})
|
||||||
for _, c := range t.Children() {
|
for _, c := range t.Children() {
|
||||||
|
|
Loading…
Reference in a new issue