Starttime of rebootjob was incorrect
This commit is contained in:
parent
f3e89fe99e
commit
cb848f0bfa
|
@ -244,9 +244,10 @@ class Job extends Repository
|
||||||
$result = $this->runCommandJob($job);
|
$result = $this->runCommandJob($job);
|
||||||
} elseif($job['data']['crontype'] == 'reboot') {
|
} elseif($job['data']['crontype'] == 'reboot') {
|
||||||
$result = $this->runRebootJob($job, $starttime);
|
$result = $this->runRebootJob($job, $starttime);
|
||||||
|
$starttime = $result['starttime'];
|
||||||
}
|
}
|
||||||
$endtime = microtime(true);
|
$endtime = microtime(true);
|
||||||
$runtime = $endtime - ($result['starttime'] ?? $starttime);
|
$runtime = $endtime - $starttime;
|
||||||
|
|
||||||
// handling of response
|
// handling of response
|
||||||
$addRunSql = 'INSERT INTO run(job_id, exitcode, output, runtime, timestamp) VALUES (:job_id, :exitcode, :output, :runtime, :timestamp)';
|
$addRunSql = 'INSERT INTO run(job_id, exitcode, output, runtime, timestamp) VALUES (:job_id, :exitcode, :output, :runtime, :timestamp)';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user