mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
parent
62b4fd6964
commit
537568f9f9
@ -264,6 +264,9 @@ func (xl XL) ListVols() (volsInfo []VolInfo, err error) {
|
||||
var total, free int64
|
||||
// Loop through success vols and get aggregated usage values.
|
||||
for _, vlsInfo := range successVols {
|
||||
if len(vlsInfo) == 0 {
|
||||
continue
|
||||
}
|
||||
free += vlsInfo[0].Free
|
||||
total += vlsInfo[0].Total
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user