mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
fix: simplify usage calculation and progress (#14086)
This commit is contained in:
@@ -46,16 +46,6 @@ const (
|
||||
// StorageInfo - represents total capacity of underlying storage.
|
||||
type StorageInfo = madmin.StorageInfo
|
||||
|
||||
// TotalUsableCapacity - total usable capacity
|
||||
func TotalUsableCapacity(s StorageInfo) int64 {
|
||||
return int64(GetTotalUsableCapacity(s.Disks, s))
|
||||
}
|
||||
|
||||
// TotalUsableCapacityFree - total usable capacity free
|
||||
func TotalUsableCapacityFree(s StorageInfo) int64 {
|
||||
return int64(GetTotalUsableCapacityFree(s.Disks, s))
|
||||
}
|
||||
|
||||
// objectHistogramInterval is an interval that will be
|
||||
// used to report the histogram of objects data sizes
|
||||
type objectHistogramInterval struct {
|
||||
|
||||
Reference in New Issue
Block a user