MDL-78341 core: Improve the progress bar style
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user