fixed memory unit size

This commit is contained in:
Pavel Muhortov 2024-04-20 20:05:04 +03:00
parent c18fa06d67
commit d855ac3dd9

View File

@ -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}