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);
$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) {
$status = result::WARNING;

View File

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