mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Use humanize constants for KiB, MiB and GiB units. (#3322)
This commit is contained in:
@@ -29,12 +29,13 @@ import (
|
||||
"sync/atomic"
|
||||
"syscall"
|
||||
|
||||
humanize "github.com/dustin/go-humanize"
|
||||
"github.com/minio/minio/pkg/disk"
|
||||
)
|
||||
|
||||
const (
|
||||
fsMinFreeSpace = 1024 * 1024 * 1024 // Min 1GiB free space.
|
||||
fsMinFreeInodes = 10000 // Min 10000.
|
||||
fsMinFreeSpace = 1 * humanize.GiByte // Min 1GiB free space.
|
||||
fsMinFreeInodes = 10000 // Min 10000.
|
||||
maxAllowedIOError = 5
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user