From 37da57bfccdc8d74a20d4b5f5f35f6ee695f304d Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Sun, 24 Dec 2023 18:42:20 +0300 Subject: [PATCH] fixed "numfmt: invalid unit size" --- templates/sendtelegram-reboot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/sendtelegram-reboot.sh b/templates/sendtelegram-reboot.sh index 5c424a4..3088bf8 100644 --- a/templates/sendtelegram-reboot.sh +++ b/templates/sendtelegram-reboot.sh @@ -65,7 +65,7 @@ fi MEM=$(grep /proc/meminfo \ -e 'MemTotal' -e 'MemAvailable' -e 'MemFree' \ -e 'SwapTotal' -e 'SwapFree' \ - | numfmt --field 2 --from-unit=Ki --to=iec | sed 's/ kB//g') + | numfmt --field 2 --to=iec | sed 's/M/G/g' | sed 's/ kB//g') if [ -n "${MEM}" ]; then TXT_MSG=$(cat <<-END ${TXT_MSG}