Skip to content

Commit

Permalink
Updated mem-cpu.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudh-devanand authored Jan 20, 2024
1 parent 27e048b commit 5e392d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mem-cpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e392d4

Please sign in to comment.