diff options
| author | Paul Buetow (europa) <paul@buetow.org> | 2015-05-31 01:05:03 +0100 |
|---|---|---|
| committer | Paul Buetow (europa) <paul@buetow.org> | 2015-05-31 01:05:03 +0100 |
| commit | 006e450462a64ea89feb8bc100941d3c0a0c6a95 (patch) | |
| tree | 531c5f0e29ac05940a8576166444f98866023824 /utils/utils.go | |
| parent | f459cec5e073de22019de4ae160d91cbaa926b63 (diff) | |
display mode and interval in header
Diffstat (limited to 'utils/utils.go')
| -rw-r--r-- | utils/utils.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/utils.go b/utils/utils.go index 28532ab..1e9ce71 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -24,7 +24,7 @@ func Abs(x int) int { } func Human(x int) string { - units := []string{"kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"} + units := []string{"k", "M", "G", "T", "P", "E", "Z", "Y"} f := float32(x) i := 0 @@ -37,7 +37,7 @@ func Human(x int) string { } func HumanBinary(x int) string { - units := []string{"ki", "Mi", "Gi", "Ti", "Pi", "Ei", "Zi", "Yi"} + units := []string{"k", "M", "G", "T", "P", "E", "Z", "Y"} f := float32(x) i := 0 |
