use absolute paths for free + awk
causes conflicts when cwrapper installed
This commit is contained in:
parent
8de900a58d
commit
b0ef6972bd
@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
total_mem=$(free -m | awk '$1 == "Mem:" { print $2 }')
|
||||
total_mem=$(/usr/bin/free -m | /usr/bin/awk '$1 == "Mem:" { print $2 }')
|
||||
|
||||
while(true); do
|
||||
current_mem=$(free -m | awk '$1 == "-/+" { print $3 }')
|
||||
current_mem=$(/usr/bin/free -m | /usr/bin/awk '$1 == "-/+" { print $3 }')
|
||||
echo "${current_mem}MB/${total_mem}MB"
|
||||
sleep 3
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user