resolve #106, Bug: GiGB in RAM usage (Ubuntu)
This commit is contained in:
parent
d00c245d4e
commit
151cd3e45f
1 changed files with 2 additions and 2 deletions
|
@ -28,10 +28,10 @@ get_percent()
|
||||||
echo $memory_usage\M\B/$total_mem_mb\M\B
|
echo $memory_usage\M\B/$total_mem_mb\M\B
|
||||||
elif (( $used_mem == 0 )); then
|
elif (( $used_mem == 0 )); then
|
||||||
memory_usage=$(free -m | awk '/^Mem/ {print $3}')
|
memory_usage=$(free -m | awk '/^Mem/ {print $3}')
|
||||||
echo $memory_usage\M\B/$total_mem\G\B
|
echo $memory_usage\M\B/$total_mem_gb\G\B
|
||||||
else
|
else
|
||||||
memory_usage=$(free -g | awk '/^Mem/ {print $3}')
|
memory_usage=$(free -g | awk '/^Mem/ {print $3}')
|
||||||
echo $memory_usage\G\B/$total_mem\G\B
|
echo $memory_usage\G\B/$total_mem_gb\G\B
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue