Compare commits

...

2 Commits

Author SHA1 Message Date
90b9eb9f5b trafficmonitor init...1 2025-11-13 09:30:54 +09:00
d1d29e2a2e trafficmonitor init...1 2025-11-13 09:30:29 +09:00

View File

@ -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 계산에 사용
@ -161,4 +161,5 @@ class CollectorService extends CommonService
'raw_in' => (int)$currentInOctets, 'raw_in' => (int)$currentInOctets,
'raw_out' => (int)$currentOutOctets, 'raw_out' => (int)$currentOutOctets,
]; ];
}
} }