Skip to content
Snippets Groups Projects
Commit fd16ba36 authored by Tibo's avatar Tibo
Browse files

fix error when showning status view right after server start

parent f0ce2965
No related branches found
No related tags found
No related merge requests found
Pipeline #4470 passed
......@@ -181,6 +181,12 @@ class MarkController extends Controller
*/
private function computeExecutionRate(array $history_jobs_executed) : array
{
if (count($history_jobs_executed) < 2) {
// not enough points to compute execution rate...
return [];
}
$points = [];
$last_point_time = $history_jobs_executed[0]->t;
$last_point_value = $history_jobs_executed[0]->y;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment