Merge branch 'MDL-72467' of git://github.com/paulholden/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2021-09-07 23:46:58 +02:00
commit f014d3635a
2 changed files with 3 additions and 1 deletions

View file

@ -71,7 +71,8 @@ class cronrunning extends check {
$formatexpected = format_time($expectedfrequency); $formatexpected = format_time($expectedfrequency);
$formatinterval = format_time($lastcroninterval); $formatinterval = format_time($lastcroninterval);
$details = format_time($delta); // Inform user the time since last cron start.
$details = get_string('lastcronstart', 'tool_task', $formatdelta);
if ($delta > $expectedfrequency + MINSECS) { if ($delta > $expectedfrequency + MINSECS) {
$status = result::WARNING; $status = result::WARNING;

View file

@ -51,6 +51,7 @@ $string['enablerunnow_desc'] = 'Allows administrators to run a single scheduled
$string['faildelay'] = 'Fail delay'; $string['faildelay'] = 'Fail delay';
$string['fromcomponent'] = 'From component: {$a}'; $string['fromcomponent'] = 'From component: {$a}';
$string['hostname'] = 'Host name'; $string['hostname'] = 'Host name';
$string['lastcronstart'] = 'Time since last cron run: {$a}';
$string['lastruntime'] = 'Last run'; $string['lastruntime'] = 'Last run';
$string['lastupdated'] = 'Last updated {$a}.'; $string['lastupdated'] = 'Last updated {$a}.';
$string['nextruntime'] = 'Next run'; $string['nextruntime'] = 'Next run';