From 5e392d45e493e3c5cc3aaacebf20c456115942b0 Mon Sep 17 00:00:00 2001 From: Anirudh Devanand <62985710+anirudh-devanand@users.noreply.github.com> Date: Sat, 20 Jan 2024 15:27:48 -0800 Subject: [PATCH] Updated mem-cpu.sh --- scripts/mem-cpu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mem-cpu.sh b/scripts/mem-cpu.sh index ccb4266..f5e512a 100755 --- a/scripts/mem-cpu.sh +++ b/scripts/mem-cpu.sh @@ -3,7 +3,7 @@ # meml=mem limit memr=mem request # cpul=cpu limit cpur=cpu request -#filtering total memory available in systema and storing as memory limit +#filtering total memory available in a system and storing as memory limit meml=$(cat /proc/meminfo | grep MemTotal | tr -s ' ' | cut -d ' ' -f 2 | bc) #filtering current memory useage of process using PID entered and storing as memory request memr=$(pmap $1 | tail -1 | tr -s ' ' | cut -d ' ' -f 2 | tr -d 'K' | bc)