aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/data_node.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/data_node.go
parent3cdf5945a265ba22ba6f72f8e25b56c0d70f561b (diff)
downloadseaweedfs-d9e8479c06bdcc1819f5d67e11fbef9a3b5741f8.tar.xz
seaweedfs-d9e8479c06bdcc1819f5d67e11fbef9a3b5741f8.zip
adjust UI max count
Diffstat (limited to 'weed/topology/data_node.go')
-rw-r--r--weed/topology/data_node.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/topology/data_node.go b/weed/topology/data_node.go
index 05842f33e..bf9557ca0 100644
--- a/weed/topology/data_node.go
+++ b/weed/topology/data_node.go
@@ -193,8 +193,7 @@ func (dn *DataNode) ToMap() interface{} {
ret["Volumes"] = dn.GetVolumeCount() + dn.GetSsdVolumeCount()
ret["VolumeIds"] = dn.GetVolumeIds()
ret["EcShards"] = dn.GetEcShardCount()
- ret["Max"] = dn.GetMaxVolumeCount()
- ret["MaxSsd"] = dn.GetMaxSsdVolumeCount()
+ ret["Max"] = dn.GetMaxVolumeCount() + dn.GetMaxSsdVolumeCount()
ret["Free"] = dn.FreeSpace()
ret["PublicUrl"] = dn.PublicUrl
return ret