MDL-81901 core: Fix progress bar bug in cli in non tty mode

This commit is contained in:
Brendan Heywood
2024-05-26 22:41:19 +10:00
parent f49d120761
commit 495cbdfbec
+1 -1
View File
@@ -5494,7 +5494,7 @@ class core_renderer_cli extends core_renderer {
$ascii .= str_repeat('#', $delta);
if ($percent >= 100 && $delta > 0) {
$ascii .= sprintf("] %3.1f%%\n$msg\n", $percent);
$ascii .= sprintf("] %3.1f%%", $percent) . "\n$msg\n";
}
$this->progressmaximums[$id] += $delta;
return $ascii;