From d855ac3dd926a518d74c14f3fa899699b1271533 Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Sat, 20 Apr 2024 20:05:04 +0300 Subject: [PATCH] fixed memory unit size --- templates/sendtelegram-reboot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/sendtelegram-reboot.sh b/templates/sendtelegram-reboot.sh index 3088bf8..bf985c0 100644 --- a/templates/sendtelegram-reboot.sh +++ b/templates/sendtelegram-reboot.sh @@ -65,7 +65,8 @@ fi MEM=$(grep /proc/meminfo \ -e 'MemTotal' -e 'MemAvailable' -e 'MemFree' \ -e 'SwapTotal' -e 'SwapFree' \ - | numfmt --field 2 --to=iec | sed 's/M/G/g' | sed 's/ kB//g') + | numfmt --field 2 --to=iec \ + | sed 's/M/GB/g' | sed 's/K/MB/g' | sed 's/ kB//g') if [ -n "${MEM}" ]; then TXT_MSG=$(cat <<-END ${TXT_MSG}