about summary refs log tree commit diff
path: root/src/afl-fuzz-stats.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-03-15 22:51:22 +0100
committervan Hauser <vh@thc.org>2020-03-15 22:51:22 +0100
commit61ba214f19f3e3d754f920b092e55b51f571eda2 (patch)
treeca2f5972156beba94a052b2a73e2d532906dc196 /src/afl-fuzz-stats.c
parentbfe076748b21af1465e18737ab71f8e2c799128a (diff)
downloadafl++-61ba214f19f3e3d754f920b092e55b51f571eda2.tar.gz
print a completed UI screen on exit without bugs :)
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r--src/afl-fuzz-stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c
index c09fcb98..5ff68aac 100644
--- a/src/afl-fuzz-stats.c
+++ b/src/afl-fuzz-stats.c
@@ -206,7 +206,7 @@ void show_stats(afl_state_t *afl) {
 
   /* If not enough time has passed since last UI update, bail out. */
 
-  if (cur_ms - last_ms < 1000 / UI_TARGET_HZ) return;
+  if (cur_ms - last_ms < 1000 / UI_TARGET_HZ && !afl->force_ui_update) return;
 
   /* Check if we're past the 10 minute mark. */
 
@@ -484,7 +484,7 @@ void show_stats(afl_state_t *afl) {
 
   }
 
-  SAYF(bV bSTOP " stage execs : " cRST "%-20s " bSTG bV bSTOP, tmp);
+  SAYF(bV bSTOP " stage execs : " cRST "%-21s" bSTG bV bSTOP, tmp);
 
   sprintf(tmp, "%s (%0.02f%%)", DI(afl->queued_with_cov),
           ((double)afl->queued_with_cov) * 100 / afl->queued_paths);