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