Commit b81a1e01 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

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.
parent 1f56e7ac
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment