mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
Add Diskattrmap, Scsiattrmap for probed scsi devices
Additional changes - Use ``iota`` for constants - Remove unncessary C header files - ``new-cmd`` now depends on codegangsta cli
This commit is contained in:
@@ -25,11 +25,12 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
UNIT_BYTE = 1
|
||||
UNIT_KILOBYTE = 1024 * UNIT_BYTE
|
||||
UNIT_MEGABYTE = 1024 * UNIT_KILOBYTE
|
||||
UNIT_GIGABYTE = 1024 * UNIT_MEGABYTE
|
||||
UNIT_TERABYTE = 1024 * UNIT_GIGABYTE
|
||||
UNIT_BYTE = 1 << (10 * iota)
|
||||
UNIT_KILOBYTE
|
||||
UNIT_MEGABYTE
|
||||
UNIT_GIGABYTE
|
||||
UNIT_TERABYTE
|
||||
UNIT_PETABYTE
|
||||
)
|
||||
|
||||
func BytesToString(bytes uint64) string {
|
||||
|
||||
Reference in New Issue
Block a user