Skip to content
Snippets Groups Projects
Commit ebae0651 authored by Alex Arnaud's avatar Alex Arnaud
Browse files

dev #17871 OAI - Fix chrono issues

parent e8338bd7
Branches
Tags
2 merge requests!917Dev#17871 oaista la vista,!904Dev#17871 oaista la vista
......@@ -25,9 +25,9 @@ class Class_Cosmogramme_Integration_Chronometre {
public static function fromLegacyState($main, $on_file, $on_records) {
return (new Class_Cosmogramme_Integration_Chronometre())
->startMain($main->startTime)
->startOnFile($on_file->startTime)
->startOnRecords($on_records->startTime);
->startMain($main->timeStart)
->startOnFile($on_file->timeStart)
->startOnRecords($on_records->timeStart);
}
......@@ -42,7 +42,7 @@ class Class_Cosmogramme_Integration_Chronometre {
foreach ([$main => $this->_main,
$on_file => $this->_on_file,
$on_records => $this->_on_records] as $legacy => $internal)
$legacy->startTime = $internal->getStart();
$legacy->timeStart = $internal->getStart();
}
......
......@@ -123,8 +123,7 @@ abstract class Class_Cosmogramme_Integration_PhaseAbstract {
public function isTimeOut() {
return $this->_is_time_out = $this->_is_time_out
|| (!$this->_phase->isCron()
&& $this->_chrono->mainElapsed() > $this->_chrono->timeout());
return !$this->_phase->isCron()
&& $this->_chrono->mainElapsed() > $this->_chrono->timeout();
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment