aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/topology_map.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-12-17 13:47:51 -0800
committerChris Lu <chris.lu@gmail.com>2020-12-17 13:47:51 -0800
commitd9e8479c06bdcc1819f5d67e11fbef9a3b5741f8 (patch)
tree37919de3be08b894f87a9f3a2433f2a2707c3a64 /weed/topology/topology_map.go
parent3cdf5945a265ba22ba6f72f8e25b56c0d70f561b (diff)
downloadseaweedfs-d9e8479c06bdcc1819f5d67e11fbef9a3b5741f8.tar.xz
seaweedfs-d9e8479c06bdcc1819f5d67e11fbef9a3b5741f8.zip
adjust UI max count
Diffstat (limited to 'weed/topology/topology_map.go')
-rw-r--r--weed/topology/topology_map.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/weed/topology/topology_map.go b/weed/topology/topology_map.go
index eb8990ab2..566fa418f 100644
--- a/weed/topology/topology_map.go
+++ b/weed/topology/topology_map.go
@@ -4,8 +4,7 @@ import "github.com/chrislusf/seaweedfs/weed/pb/master_pb"
func (t *Topology) ToMap() interface{} {
m := make(map[string]interface{})
- m["Max"] = t.GetMaxVolumeCount()
- m["MaxSsd"] = t.GetMaxSsdVolumeCount()
+ m["Max"] = t.GetMaxVolumeCount() + t.GetMaxSsdVolumeCount()
m["Free"] = t.FreeSpace()
var dcs []interface{}
for _, c := range t.Children() {
@@ -30,8 +29,7 @@ func (t *Topology) ToMap() interface{} {
func (t *Topology) ToVolumeMap() interface{} {
m := make(map[string]interface{})
- m["Max"] = t.GetMaxVolumeCount()
- m["MaxSsd"] = t.GetMaxSsdVolumeCount()
+ m["Max"] = t.GetMaxVolumeCount() + t.GetMaxSsdVolumeCount()
m["Free"] = t.FreeSpace()
dcs := make(map[NodeId]interface{})
for _, c := range t.Children() {