From 2d6bb74ff05f98d27fb7e1287b6be48b02d4bc3e Mon Sep 17 00:00:00 2001 From: "choi.jh" Date: Wed, 12 Nov 2025 15:03:55 +0900 Subject: [PATCH] trafficmonitor init...2 --- app/Controllers/CLI/Collector.php | 1 + app/Services/CollectorService.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/CLI/Collector.php b/app/Controllers/CLI/Collector.php index e18e886..3dab42e 100644 --- a/app/Controllers/CLI/Collector.php +++ b/app/Controllers/CLI/Collector.php @@ -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"); } diff --git a/app/Services/CollectorService.php b/app/Services/CollectorService.php index 6c61ab9..b6f71e6 100644 --- a/app/Services/CollectorService.php +++ b/app/Services/CollectorService.php @@ -128,7 +128,6 @@ class CollectorService extends CommonService log_message('error', "시간 차이 오류 발생: {$trafficEntity->getIP()} - {$deltaTime}초 (UID: {$trafficEntity->getPK()})"); } } - // DB에 저장할 데이터를 배열로 반환 return [ 'trafficinfo_uid' => $trafficEntity->getPK(),