summaryrefslogtreecommitdiff
path: root/utils/utils.go
diff options
context:
space:
mode:
authorPaul Buetow (europa) <paul@buetow.org>2015-05-31 01:05:03 +0100
committerPaul Buetow (europa) <paul@buetow.org>2015-05-31 01:05:03 +0100
commit006e450462a64ea89feb8bc100941d3c0a0c6a95 (patch)
tree531c5f0e29ac05940a8576166444f98866023824 /utils/utils.go
parentf459cec5e073de22019de4ae160d91cbaa926b63 (diff)
display mode and interval in header
Diffstat (limited to 'utils/utils.go')
-rw-r--r--utils/utils.go4
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