summaryrefslogtreecommitdiff
path: root/utils/utils.go
diff options
context:
space:
mode:
authorPaul Buetow (europa) <paul@buetow.org>2015-06-01 23:24:51 +0100
committerPaul Buetow (europa) <paul@buetow.org>2015-06-01 23:24:51 +0100
commit5fffe7c603a6f55c05b3e2ccf55310af6dab6217 (patch)
treed102a64d7afd21fb0a14f98beadd64e6aadb0e04 /utils/utils.go
parent5d96f9cb6be59e8c2715c63053dc291940182a6b (diff)
Fix display0.1
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 1529136..fa8e3d9 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -30,7 +30,7 @@ func Abs(x int) int {
}
func Human(x int) string {
- units := []string{" ", "k", "M", "G", "T", "P", "E", "Z", "Y"}
+ units := []string{"", "k", "M", "G", "T", "P", "E", "Z", "Y"}
f := float32(x)
i := 0
@@ -43,7 +43,7 @@ func Human(x int) string {
}
func HumanBinary(x int) string {
- units := []string{" ", "k", "M", "G", "T", "P", "E", "Z", "Y"}
+ units := []string{"", "k", "M", "G", "T", "P", "E", "Z", "Y"}
f := float32(x)
i := 0