about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-09-13 08:25:06 +0000
committerGitHub <noreply@github.com>2023-09-13 08:25:06 +0000
commitdee76993812fa9b5d8c1b75126129887a10befae (patch)
treea41ff0f5606f72e005cf34dce5f5e0333b9fb6ed
parentb28b58801dbb1f32bc5d3db10cba7844196b769f (diff)
parent748d417f86d2d2a290c43428fd40ce616afcfc95 (diff)
downloadafl++-dee76993812fa9b5d8c1b75126129887a10befae.tar.gz
Merge pull request #1863 from AFLplusplus/dev
afl-whatsup output fix
-rwxr-xr-xafl-whatsup4
1 files changed, 2 insertions, 2 deletions
diff --git a/afl-whatsup b/afl-whatsup
index fad4c3d3..5b7cbcd6 100755
--- a/afl-whatsup
+++ b/afl-whatsup
@@ -321,8 +321,8 @@ for j in `find . -maxdepth 2 -iname fuzzer_setup | sort`; do
       
       if [ -z "$MINIMAL_ONLY" ]; then
         
-        CPU_USAGE=$(ps aux | grep $fuzzer_pid | grep -v grep | awk '{print $3}')
-        MEM_USAGE=$(ps aux | grep $fuzzer_pid | grep -v grep | awk '{print $4}')
+        CPU_USAGE=$(ps aux | grep -w $fuzzer_pid | grep -v grep | awk '{print $3}')
+        MEM_USAGE=$(ps aux | grep -w $fuzzer_pid | grep -v grep | awk '{print $4}')
         
         echo "  cpu usage $CPU_USAGE%, memory usage $MEM_USAGE%"