mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 09:17:56 +08:00
mount: stats report physical size instead of logical size
This commit is contained in:
@@ -493,9 +493,9 @@ func (vl *VolumeLayout) Stats() *VolumeLayoutStats {
|
||||
for vid, vll := range vl.vid2location {
|
||||
size, fileCount := vll.Stats(vid, freshThreshold)
|
||||
ret.FileCount += uint64(fileCount)
|
||||
ret.UsedSize += size
|
||||
ret.UsedSize += size * uint64(vll.Length())
|
||||
if vl.readonlyVolumes.IsTrue(vid) {
|
||||
ret.TotalSize += size
|
||||
ret.TotalSize += size * uint64(vll.Length())
|
||||
} else {
|
||||
ret.TotalSize += vl.volumeSizeLimit * uint64(vll.Length())
|
||||
}
|
||||
|
Reference in New Issue
Block a user