Browse Source

fix the fix for #1143 (close double quote)

pull/1144/head
UltimateByte 9 years ago
committed by GitHub
parent
commit
bd77c9fa68
  1. 2
      lgsm/functions/info_distro.sh

2
lgsm/functions/info_distro.sh

@ -73,7 +73,7 @@ physmemtotalmb=$(free -m | awk '/Mem:/ {print $2}')
physmemused=$(free ${humanreadable} | awk '/Mem:/ {print $3}') physmemused=$(free ${humanreadable} | awk '/Mem:/ {print $3}')
physmemfree=$(free ${humanreadable} | awk '/Mem:/ {print $4}') physmemfree=$(free ${humanreadable} | awk '/Mem:/ {print $4}')
physmemcached=$(free ${humanreadable} | awk '/cache:/ {print $4}') physmemcached=$(free ${humanreadable} | awk '/cache:/ {print $4}')
if [ -z "${physmemcached} ]; then if [ -z "${physmemcached}" ]; then
physmemcached=$(free ${humanreadable} | awk '/Mem:/ {print $5}') physmemcached=$(free ${humanreadable} | awk '/Mem:/ {print $5}')
fi fi
swaptotal=$(free ${humanreadable} | awk '/Swap:/ {print $2}') swaptotal=$(free ${humanreadable} | awk '/Swap:/ {print $2}')

Loading…
Cancel
Save