trafficmonitor init...2

This commit is contained in:
choi.jh 2025-11-12 15:03:55 +09:00
parent 9b9422d192
commit 2d6bb74ff0
2 changed files with 1 additions and 1 deletions

View File

@ -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");
}

View File

@ -128,7 +128,6 @@ class CollectorService extends CommonService
log_message('error', "시간 차이 오류 발생: {$trafficEntity->getIP()} - {$deltaTime}초 (UID: {$trafficEntity->getPK()})");
}
}
// DB에 저장할 데이터를 배열로 반환
return [
'trafficinfo_uid' => $trafficEntity->getPK(),