MDL-78341 core: Improve the progress bar style

This commit is contained in:
Brendan Heywood
2023-06-14 09:09:43 +10:00
parent 71c36d2de1
commit 73ed05ecf2
2 changed files with 26 additions and 16 deletions
+2 -1
View File
@@ -5151,7 +5151,8 @@ class progress_bar implements renderable, templatable {
$estimatemsg = '';
if ($estimate != 0 && is_numeric($estimate)) {
$estimatemsg = format_time(round($estimate));
// Err on the conservative side and also avoid showing 'now' as the estimate.
$estimatemsg = format_time(ceil($estimate));
}
$this->percent = $percent;