fixed memory unit size
This commit is contained in:
parent
c18fa06d67
commit
d855ac3dd9
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user