Add run time to scheduled import/export last run info

This commit is contained in:
Nathan Gray 2011-12-13 20:00:40 +00:00
parent 3ca10ad0c5
commit cd96a14674
2 changed files with 6 additions and 2 deletions

View File

@ -127,6 +127,7 @@
if(is_array($async[$id]['data'])) {
$data += $async[$id]['data'];
$data['schedule'] = $async[$id]['times'];
unset($data['times']);
// Async sometimes changes minutes to an array - show user what they typed
if(is_array($data['schedule']['min'])) $data['schedule']['min'] = $data['min'];
@ -480,6 +481,9 @@
}
}
// Run time in minutes
$data['run_time'] = (time() - $data['last_run']) / 60;
// Update job with results
self::update_job($data);

File diff suppressed because one or more lines are too long