Compare commits
2 Commits
194ac35d30
...
90b9eb9f5b
| Author | SHA1 | Date | |
|---|---|---|---|
| 90b9eb9f5b | |||
| d1d29e2a2e |
@ -32,7 +32,7 @@ class CollectorService extends CommonService
|
|||||||
'title_field' => $this->model->getTitleField(),
|
'title_field' => $this->model->getTitleField(),
|
||||||
'table' => $this->model->getTable(),
|
'table' => $this->model->getTable(),
|
||||||
'useAutoIncrement' => $this->model->useAutoIncrement(),
|
'useAutoIncrement' => $this->model->useAutoIncrement(),
|
||||||
'class_path' => $this->getClassPaths(false)
|
'class_path' => $this->getClassPaths(false),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
return $this->formServiceInstance;
|
return $this->formServiceInstance;
|
||||||
@ -46,7 +46,7 @@ class CollectorService extends CommonService
|
|||||||
'title_field' => $this->model->getTitleField(),
|
'title_field' => $this->model->getTitleField(),
|
||||||
'table' => $this->model->getTable(),
|
'table' => $this->model->getTable(),
|
||||||
'useAutoIncrement' => $this->model->useAutoIncrement(),
|
'useAutoIncrement' => $this->model->useAutoIncrement(),
|
||||||
'class_path' => $this->getClassPaths(false)
|
'class_path' => $this->getClassPaths(false),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
return $this->helperInstance;
|
return $this->helperInstance;
|
||||||
@ -104,7 +104,7 @@ class CollectorService extends CommonService
|
|||||||
if ($currentInOctets === null || $currentOutOctets === null) {
|
if ($currentInOctets === null || $currentOutOctets === null) {
|
||||||
$message = "트래픽 수집 실패: {$trafficEntity->getIP()} - IF{$trafficEntity->getInterface()} (UID: {$trafficEntity->getPK()})";
|
$message = "트래픽 수집 실패: {$trafficEntity->getIP()} - IF{$trafficEntity->getInterface()} (UID: {$trafficEntity->getPK()})";
|
||||||
log_message('warning', $message);
|
log_message('warning', $message);
|
||||||
throw new Exception($message);
|
throw new \Exception($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 이전 데이터를 조회하여 Rate 계산에 사용
|
// 이전 데이터를 조회하여 Rate 계산에 사용
|
||||||
@ -162,3 +162,4 @@ class CollectorService extends CommonService
|
|||||||
'raw_out' => (int)$currentOutOctets,
|
'raw_out' => (int)$currentOutOctets,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user