trafficmonitor init...2
This commit is contained in:
parent
9b9422d192
commit
2d6bb74ff0
@ -29,6 +29,7 @@ class Collector extends CommonController
|
||||
foreach ($trafficService->getEntities(['status' => STATUS['AVAILABLE']]) as $entity) {
|
||||
$data = $this->service->getCalculatedData($entity);
|
||||
// Collector DB에 결과 저장
|
||||
dd($data);
|
||||
$this->service->create($this->createDTO($data));
|
||||
log_message('info', "트래픽 계산 및 저장 완료 (UID: {$entity->getPK()}), In: {$data['in_kbits_sec']} Kb/s");
|
||||
}
|
||||
|
||||
@ -128,7 +128,6 @@ class CollectorService extends CommonService
|
||||
log_message('error', "시간 차이 오류 발생: {$trafficEntity->getIP()} - {$deltaTime}초 (UID: {$trafficEntity->getPK()})");
|
||||
}
|
||||
}
|
||||
|
||||
// DB에 저장할 데이터를 배열로 반환
|
||||
return [
|
||||
'trafficinfo_uid' => $trafficEntity->getPK(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user