mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-15 23:46:12 +00:00
Fixed free and used memory being swapped
This commit is contained in:
@@ -43,11 +43,11 @@ get_total_mem() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_free_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() {
|
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() {
|
get_de_wm() {
|
||||||
|
|||||||
Reference in New Issue
Block a user