fix bug by reassign with server info

This commit is contained in:
Yu Sun
2022-08-14 19:39:41 +08:00
parent eec9e06137
commit 6f28d923d2

View File

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