diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2016-02-18 02:39:55 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2016-02-18 02:39:55 +0300 |
commit | 64d81a2b36a705bbfe5be49e45695b059fa6a16a (patch) | |
tree | 589662162c57ef5bc14e709da8e62212168a3709 /functions | |
parent | 2d196fa12ffcd579ea310ad676aac9af51e360b2 (diff) | |
parent | 7efc6e41873e6c329f3b66e43ec853a85f0ad5e9 (diff) |
Merge pull request #212 from dritter/unit_testing
Adding Unit Tests, supported by Travis-CI
Diffstat (limited to 'functions')
-rw-r--r-- | functions/utilities.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh index dcbca3c6..5ca5b431 100644 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -27,6 +27,9 @@ function set_default() { } # Converts large memory values into a human-readable unit (e.g., bytes --> GB) +# Takes two arguments: +# * $size - The number which should be prettified +# * $base - The base of the number (default Bytes) printSizeHumanReadable() { typeset -F 2 size size="$1"+0.00001 |