| @@ 186-195 (lines=10) @@ | ||
| 183 | $completed = false; |
|
| 184 | ||
| 185 | // Log that we did it ;) |
|
| 186 | if ($completed) |
|
| 187 | { |
|
| 188 | $total_time = round(array_sum(explode(' ', microtime())) - array_sum(explode(' ', $start_time)), 3); |
|
| 189 | $smcFunc['db_insert']('', |
|
| 190 | '{db_prefix}log_scheduled_tasks', |
|
| 191 | array('id_task' => 'int', 'time_run' => 'int', 'time_taken' => 'float'), |
|
| 192 | array($row['id_task'], time(), $total_time), |
|
| 193 | array('id_task') |
|
| 194 | ); |
|
| 195 | } |
|
| 196 | } |
|
| 197 | $smcFunc['db_free_result']($request); |
|
| 198 | ||
| @@ 111-124 (lines=14) @@ | ||
| 108 | $completed = false; |
|
| 109 | ||
| 110 | // Log that we did it ;) |
|
| 111 | if ($completed) |
|
| 112 | { |
|
| 113 | $total_time = round(array_sum(explode(' ', microtime())) - array_sum(explode(' ', $time_start)), 3); |
|
| 114 | $smcFunc['db_insert']('', |
|
| 115 | '{db_prefix}log_scheduled_tasks', |
|
| 116 | array( |
|
| 117 | 'id_task' => 'int', 'time_run' => 'int', 'time_taken' => 'float', |
|
| 118 | ), |
|
| 119 | array( |
|
| 120 | $row['id_task'], time(), (int) $total_time, |
|
| 121 | ), |
|
| 122 | array() |
|
| 123 | ); |
|
| 124 | } |
|
| 125 | } |
|
| 126 | } |
|
| 127 | $smcFunc['db_free_result']($request); |
|