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}