| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # | 2 # |
| 3 # american fuzzy lop - status check tool | 3 # american fuzzy lop - status check tool |
| 4 # -------------------------------------- | 4 # -------------------------------------- |
| 5 # | 5 # |
| 6 # Written and maintained by Michal Zalewski <lcamtuf@google.com> | 6 # Written and maintained by Michal Zalewski <lcamtuf@google.com> |
| 7 # | 7 # |
| 8 # Copyright 2015 Google Inc. All rights reserved. | 8 # Copyright 2015 Google Inc. All rights reserved. |
| 9 # | 9 # |
| 10 # Licensed under the Apache License, Version 2.0 (the "License"); | 10 # Licensed under the Apache License, Version 2.0 (the "License"); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 TOTAL_PENDING=0 | 67 TOTAL_PENDING=0 |
| 68 | 68 |
| 69 if [ "$SUMMARY_ONLY" = "" ]; then | 69 if [ "$SUMMARY_ONLY" = "" ]; then |
| 70 | 70 |
| 71 echo "Individual fuzzers" | 71 echo "Individual fuzzers" |
| 72 echo "==================" | 72 echo "==================" |
| 73 echo | 73 echo |
| 74 | 74 |
| 75 fi | 75 fi |
| 76 | 76 |
| 77 for i in `find . -maxdepth 2 -iname fuzzer_stats`; do | 77 for i in `find . -maxdepth 2 -iname fuzzer_stats | sort`; do |
| 78 | 78 |
| 79 sed 's/^command_line.*$/_skip:1/;s/[ ]*:[ ]*/="/;s/$/"/' "$i" >"$TMP" | 79 sed 's/^command_line.*$/_skip:1/;s/[ ]*:[ ]*/="/;s/$/"/' "$i" >"$TMP" |
| 80 . "$TMP" | 80 . "$TMP" |
| 81 | 81 |
| 82 RUN_UNIX=$((CUR_TIME - start_time)) | 82 RUN_UNIX=$((CUR_TIME - start_time)) |
| 83 RUN_DAYS=$((RUN_UNIX / 60 / 60 / 24)) | 83 RUN_DAYS=$((RUN_UNIX / 60 / 60 / 24)) |
| 84 RUN_HRS=$(((RUN_UNIX / 60 / 60) % 24)) | 84 RUN_HRS=$(((RUN_UNIX / 60 / 60) % 24)) |
| 85 | 85 |
| 86 if [ "$SUMMARY_ONLY" = "" ]; then | 86 if [ "$SUMMARY_ONLY" = "" ]; then |
| 87 | 87 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 echo " Pending paths : $TOTAL_PFAV faves, $TOTAL_PENDING total" | 154 echo " Pending paths : $TOTAL_PFAV faves, $TOTAL_PENDING total" |
| 155 | 155 |
| 156 if [ "$ALIVE_CNT" -gt "1" ]; then | 156 if [ "$ALIVE_CNT" -gt "1" ]; then |
| 157 echo " Pending per fuzzer : $((TOTAL_PFAV/ALIVE_CNT)) faves, $((TOTAL_PENDING
/ALIVE_CNT)) total (on average)" | 157 echo " Pending per fuzzer : $((TOTAL_PFAV/ALIVE_CNT)) faves, $((TOTAL_PENDING
/ALIVE_CNT)) total (on average)" |
| 158 fi | 158 fi |
| 159 | 159 |
| 160 echo " Crashes found : $TOTAL_CRASHES locally unique" | 160 echo " Crashes found : $TOTAL_CRASHES locally unique" |
| 161 echo | 161 echo |
| 162 | 162 |
| 163 exit 0 | 163 exit 0 |
| OLD | NEW |