From 63ff845576e01943e6b65b95bfd7270f98db835b Mon Sep 17 00:00:00 2001 From: CapCreeperGR Date: Mon, 6 May 2024 15:49:54 +0300 Subject: [PATCH] Fixed free and used memory being swapped --- config/fetch_script_functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/fetch_script_functions.sh b/config/fetch_script_functions.sh index da89efd..daf97b1 100644 --- a/config/fetch_script_functions.sh +++ b/config/fetch_script_functions.sh @@ -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() {