diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 672c71299b0..adb09b605ae 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -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; diff --git a/lib/templates/progress_bar.mustache b/lib/templates/progress_bar.mustache index 56f8212d8f8..82f9cfcb38d 100644 --- a/lib/templates/progress_bar.mustache +++ b/lib/templates/progress_bar.mustache @@ -25,21 +25,29 @@ "width": "500" } }} -
-
-

- -

+
+
+
+
+
+
+
 
+
+
+   + 0% +
{{! We must not use the JS helper otherwise this gets executed too late. }} -