diff options
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']); |