Differential D19150 Diff 45881 src/applications/harbormaster/controller/HarbormasterBuildLogRenderController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterBuildLogRenderController.php
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | foreach ($reads as $key => $read) { | ||||
| $reads[$key]['fetchOffset'] = $position_offset; | $reads[$key]['fetchOffset'] = $position_offset; | ||||
| $reads[$key]['fetchLength'] = $read_length; | $reads[$key]['fetchLength'] = $read_length; | ||||
| $reads[$key]['fetchLine'] = $position_line; | $reads[$key]['fetchLine'] = $position_line; | ||||
| } | } | ||||
| $reads = $this->mergeOverlappingReads($reads); | $reads = $this->mergeOverlappingReads($reads); | ||||
| foreach ($reads as $key => $read) { | foreach ($reads as $key => $read) { | ||||
| $data = $log->loadData($read['fetchOffset'], $read['fetchLength']); | $fetch_offset = $read['fetchOffset']; | ||||
| $fetch_length = $read['fetchLength']; | |||||
| if ($fetch_offset + $fetch_length > $log_size) { | |||||
| $fetch_length = $log_size - $fetch_offset; | |||||
| } | |||||
| $data = $log->loadData($fetch_offset, $fetch_length); | |||||
| $offset = $read['fetchOffset']; | $offset = $read['fetchOffset']; | ||||
| $line = $read['fetchLine']; | $line = $read['fetchLine']; | ||||
| $lines = $this->getLines($data); | $lines = $this->getLines($data); | ||||
| $line_data = array(); | $line_data = array(); | ||||
| foreach ($lines as $line_text) { | foreach ($lines as $line_text) { | ||||
| $length = strlen($line_text); | $length = strlen($line_text); | ||||
| $line_data[] = array( | $line_data[] = array( | ||||
| ▲ Show 20 Lines • Show All 552 Lines • Show Last 20 Lines | |||||