diff options
author | Simon Rettberg | 2021-09-24 16:42:50 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-09-24 16:42:50 +0200 |
commit | 755cab15d44d5a4e15a9ff0302861dc686e47b57 (patch) | |
tree | 9a3c4acd97fe9ad4bc3e4523e75d7d759010f3a2 /modules-available/statistics/inc/hardwareinfo.inc.php | |
parent | [statistics/passthrough] WIP (diff) | |
download | slx-admin-755cab15d44d5a4e15a9ff0302861dc686e47b57.tar.gz slx-admin-755cab15d44d5a4e15a9ff0302861dc686e47b57.tar.xz slx-admin-755cab15d44d5a4e15a9ff0302861dc686e47b57.zip |
[statistics/passthrough] WIP
Diffstat (limited to 'modules-available/statistics/inc/hardwareinfo.inc.php')
-rw-r--r-- | modules-available/statistics/inc/hardwareinfo.inc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules-available/statistics/inc/hardwareinfo.inc.php b/modules-available/statistics/inc/hardwareinfo.inc.php index 5f1a4372..6a6c74cd 100644 --- a/modules-available/statistics/inc/hardwareinfo.inc.php +++ b/modules-available/statistics/inc/hardwareinfo.inc.php @@ -42,9 +42,9 @@ class HardwareInfo $hw = new HardwareQuery(self::PCI_DEVICE, $best['machineuuid'], true); // TODO: Get list of enabled pass through groups for this client's location $hw->addWhere(true, '@PASSTHROUGH', 'IN', ['GPU', 'GVT']); - $hw->addColumn(true, 'vendor'); - $hw->addColumn(true, 'device'); - $hw->addColumn(false, 'slot'); + $hw->addGlobalColumn('vendor'); + $hw->addGlobalColumn('device'); + $hw->addLocalColumn('slot'); $res = $hw->query(); $passthrough = []; $slots = []; @@ -67,8 +67,8 @@ class HardwareInfo error_log('Querying slot ' . $slot); $hw = new HardwareQuery(self::PCI_DEVICE, $best['machineuuid'], true); $hw->addWhere(false, 'slot', 'LIKE', $slot . '.%'); - $hw->addColumn(true, 'vendor'); - $hw->addColumn(true, 'device'); + $hw->addGlobalColumn('vendor'); + $hw->addGlobalColumn('device'); foreach ($hw->query() as $row) { $passthrough[$row['vendor'] . ':' . $row['device']] = 1; error_log('Extra PT: ' . $row['vendor'] . ':' . $row['device']); |