Fixed free and used memory being swapped
This commit is contained in:
parent
c40c3ce423
commit
63ff845576
@ -43,11 +43,11 @@ get_total_mem() {
|
||||
}
|
||||
|
||||
get_free_mem() {
|
||||
free --mebi -t | grep 'Total' | tr -s ' ' | cut -d" " -f3
|
||||
free --mebi -t | grep 'Total' | tr -s ' ' | cut -d" " -f4
|
||||
}
|
||||
|
||||
get_used_mem() {
|
||||
free --mebi -t | grep 'Total' | tr -s ' ' | cut -d" " -f4
|
||||
free --mebi -t | grep 'Total' | tr -s ' ' | cut -d" " -f3
|
||||
}
|
||||
|
||||
get_de_wm() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user