Skip to content

Commit 89801bb

Browse files
committed
display time as clock too
1 parent b0cdf59 commit 89801bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

afl-stat.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ while [ -n "$1" ]; do
99
test -d "$1" || { echo Error: not a directory: $1 ; }
1010
test -e "$1"/fuzzer_stats || { echo Error: not an afl-fuzz -o out directory ; }
1111
echo File: `realpath "$1"`
12-
egrep 'run_time|execs_done|execs_per_sec|paths_total|^unique_|stability' "$1"/fuzzer_stats | sort | tee -a "$1"/stats.out
12+
{
13+
egrep 'run_time|execs_done|execs_per_sec|paths_total|^unique_|stability' "$1"/fuzzer_stats
14+
SECONDS=`egrep run_time "$1"/fuzzer_stats | awk '{print$3}'`
15+
TIME=`date -u -d "@$SECONDS" +"%T"`
16+
echo "run_clock : $TIME"
17+
} | sort | tee -a "$1"/stats.out
1318
LINES=
1419
test -e "$1"/cov/afl-cov.log && LINES=`grep -w lines "$1"/cov/afl-cov.log|tail -n 1|sed 's/.*(//'|sed 's/ .*//'`
1520
echo "coverage : $LINES" | tee -a "$1"/stats.out

0 commit comments

Comments
 (0)