From d7a0f493912ecdfe117c7e67fac0a355f34bb4a4 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Tue, 9 Feb 2016 21:44:45 +0100 Subject: [PATCH] Add documentation for printSizeHumanReadable --- functions/utilities.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/utilities.zsh b/functions/utilities.zsh index 079e675a..7ca73b36 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