function elysia_cron_reset_stats in Elysia Cron 7.2
Same name and namespace in other branches
- 5.2 elysia_cron.module \elysia_cron_reset_stats()
- 5 elysia_cron.module \elysia_cron_reset_stats()
- 6.2 elysia_cron.module \elysia_cron_reset_stats()
- 6 elysia_cron.module \elysia_cron_reset_stats()
- 7 elysia_cron.module \elysia_cron_reset_stats()
1 call to elysia_cron_reset_stats()
- elysia_cron_reset_statistics_form_submit in ./
elysia_cron.admin.inc - Submit handler for 'elysia_cron_reset_statistics_form' form.
File
- ./
elysia_cron.module, line 859
Code
function elysia_cron_reset_stats() {
global $_elysia_cron_settings, $_elysia_cron_settings_by_channel;
elysia_cron_initialize();
foreach ($_elysia_cron_settings as $job => $conf) {
elysia_cron_set_job_stats($job, 0, 0, 0, 0, 0);
}
$channel_reset_data = array(
'last_run' => 0,
'last_execution_time' => 0,
'execution_count' => 0,
'avg_execution_time' => 0,
'max_execution_time' => 0,
'last_shutdown_time' => 0,
'last_aborted' => 0,
'abort_count' => 0,
'last_abort_function' => 0,
);
foreach ($_elysia_cron_settings_by_channel as $channel => $conf) {
elysia_cron_set_channel_stats($channel, $channel_reset_data);
}
}