From f552945eb8ec111a0d553b337492a5dd44c79675 Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Sun, 24 Dec 2023 22:49:50 +0300 Subject: [PATCH] fixed "numfmt: invalid unit size" --- templates/sendmail-reboot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/sendmail-reboot.sh b/templates/sendmail-reboot.sh index f06c064..0f9629a 100644 --- a/templates/sendmail-reboot.sh +++ b/templates/sendmail-reboot.sh @@ -61,7 +61,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}