mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-10-31 10:21:48 +00:00
Fixed free and used memory being swapped
This commit is contained in:
1 parent
c40c3ce423
commit
63ff845576
1 file changed
+2
-2
@@ -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