about summary refs log tree commit diff
diff options
context:
space:
mode:
-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