mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
XL total/free space calculation is done inside xl module (#2945)
This commit is contained in:
committed by
Harshavardhana
parent
a681af6953
commit
334cdb5d64
@@ -208,8 +208,8 @@ func getStorageInfo(disks []StorageAPI) StorageInfo {
|
||||
// Free as the total aggregated values. Total capacity is always
|
||||
// the multiple of smallest disk among the disk list.
|
||||
storageInfo := StorageInfo{
|
||||
Total: disksInfo[0].Total * int64(onlineDisks),
|
||||
Free: disksInfo[0].Free * int64(onlineDisks),
|
||||
Total: disksInfo[0].Total * int64(onlineDisks) / 2,
|
||||
Free: disksInfo[0].Free * int64(onlineDisks) / 2,
|
||||
}
|
||||
storageInfo.Backend.Type = XL
|
||||
storageInfo.Backend.OnlineDisks = onlineDisks
|
||||
|
||||
Reference in New Issue
Block a user