about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-04-13 18:21:33 +0200
committervanhauser-thc <vh@thc.org>2021-04-13 18:21:33 +0200
commit36c7c49738ae659868f70ea7d1b85804158b532f (patch)
treebb49c7dcf910153856a58bebe63af5163acb6f2c
parent1fabfd5a32ce850912ce623eeabd369b59c70494 (diff)
downloadafl++-36c7c49738ae659868f70ea7d1b85804158b532f.tar.gz
fix alive count in afl-whatsup
-rwxr-xr-xafl-whatsup11
1 files changed, 6 insertions, 5 deletions
diff --git a/afl-whatsup b/afl-whatsup
index ee20fc2d..941b0e34 100755
--- a/afl-whatsup
+++ b/afl-whatsup
@@ -265,11 +265,6 @@ fmt_duration $TOTAL_LAST_PATH && TOTAL_LAST_PATH=$DUR_STRING
 
 test "$TOTAL_TIME" = "0" && TOTAL_TIME=1
 
-echo "Summary stats"
-echo "============="
-echo
-echo "       Fuzzers alive : $ALIVE_CNT"
-
 if [ "$PROCESS_DEAD" = "" ]; then
 
   TXT="excluded from stats"
@@ -277,9 +272,15 @@ if [ "$PROCESS_DEAD" = "" ]; then
 else
 
   TXT="included in stats"
+  ALIVE_CNT=$(($ALIVE_CNT - $DEAD_CNT))
 
 fi
 
+echo "Summary stats"
+echo "============="
+echo
+echo "       Fuzzers alive : $ALIVE_CNT"
+
 if [ ! "$DEAD_CNT" = "0" ]; then
   echo "      Dead or remote : $DEAD_CNT ($TXT)"
 fi