From b0d208599650a00fdd14d92e53cfe13d4050fdb3 Mon Sep 17 00:00:00 2001 From: azlux Date: Tue, 10 Oct 2017 01:15:03 +0200 Subject: [PATCH] make the humain-readable a function I forgot the function ! --- scripts/clientStat.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/clientStat.sh b/scripts/clientStat.sh index c14e030..6a5ff97 100644 --- a/scripts/clientStat.sh +++ b/scripts/clientStat.sh @@ -2,6 +2,11 @@ # PiVPN: client status script STATUS_LOG="/var/log/openvpn-status.log" + +function hr() { + numfmt --to=iec-i --suffix=B "$1" +} + printf "\n" if [ ! -f "${STATUS_LOG}" ]; then echo "The file: $STATUS_LOG was not found!"