mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-01-09 14:28:04 -05:00
Handle languages with no whitespace in free (#708)
This commit is contained in:
@@ -1841,7 +1841,7 @@ detectmem () {
|
||||
#done
|
||||
#usedmem=$((usedmem / 1024))
|
||||
#totalmem=$((totalmem / 1024))
|
||||
mem=$(free -b | awk 'NR==2{print $2"-"$7}')
|
||||
mem=$(free -b | awk -F ':' 'NR==2{print $2}' | awk '{print $1"-"$6}')
|
||||
usedmem=$((mem / 1024 / 1024))
|
||||
totalmem=$((${mem//-*} / 1024 / 1024))
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user