From 36c7c49738ae659868f70ea7d1b85804158b532f Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Tue, 13 Apr 2021 18:21:33 +0200 Subject: fix alive count in afl-whatsup --- afl-whatsup | 11 ++++++----- 1 file 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 -- cgit 1.4.1