fix bug by reassign with server info
This commit is contained in:
@@ -51,7 +51,8 @@ Class EStatusCapture {
|
||||
|
||||
$server_devices = [];
|
||||
foreach ($all_status as $device) {
|
||||
$server_devices[$device['server_id']] = array_slice($device, 0, 5);
|
||||
if (!isset($server_devices[$device['server_id']]))
|
||||
$server_devices[$device['server_id']] = array_slice($device, 0, 5);
|
||||
$server_devices[$device['server_id']]['devices'][] = array_slice($device, -5);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user