diff options
Diffstat (limited to 'weed/admin/dash/cluster_topology.go')
| -rw-r--r-- | weed/admin/dash/cluster_topology.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/weed/admin/dash/cluster_topology.go b/weed/admin/dash/cluster_topology.go index 2bac7145e..8c25cc2ac 100644 --- a/weed/admin/dash/cluster_topology.go +++ b/weed/admin/dash/cluster_topology.go @@ -76,6 +76,13 @@ func (s *AdminServer) getTopologyViaGRPC(topology *ClusterTopology) error { totalSize += int64(volInfo.Size) totalFiles += int64(volInfo.FileCount) } + + // Sum up EC shard sizes + for _, ecShardInfo := range diskInfo.EcShardInfos { + for _, shardSize := range ecShardInfo.ShardSizes { + totalSize += shardSize + } + } } vs := VolumeServer{ |
