From b81a1e01d228ced908025e614e014fc8e17938f9 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Thu, 28 Apr 2022 13:42:33 -0700 Subject: [PATCH] Always displays the 100% progress report ... regardless of the timing of the last progress report. For cases where the progress output isn't erased once done doing the thing. --- src/sbbs3/con_out.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/con_out.cpp b/src/sbbs3/con_out.cpp index 4abcc4966e..c96f355194 100644 --- a/src/sbbs3/con_out.cpp +++ b/src/sbbs3/con_out.cpp @@ -1399,7 +1399,7 @@ void sbbs_t::progress(const char* text, int count, int total, int interval) if(cfg.node_num == 0) return; // Don't output this for events double now = xp_timer(); - if((now - last_progress) * 1000 < interval) + if(count < total && (now - last_progress) * 1000 < interval) return; if(text == NULL) text = ""; float pct = total ? ((float)count/total)*100.0F : 100.0F; -- GitLab