summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/api.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics/api.inc.php')
-rw-r--r--modules-available/statistics/api.inc.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules-available/statistics/api.inc.php b/modules-available/statistics/api.inc.php
index 72fe4e7b..0a194f2e 100644
--- a/modules-available/statistics/api.inc.php
+++ b/modules-available/statistics/api.inc.php
@@ -1,6 +1,15 @@
<?php
if (Request::any('action') === 'test' && isLocalExecution()) {
+ $x = new HardwareQuery(HardwareInfo::PCI_DEVICE);
+ //$x->addCompare(false, 'Memory Slot Occupied', '>=', true, 'Memory Slot Count');
+ $x->addWhere(true, 'vendor', '=', '8086');
+ $x->addColumn(true, 'device');
+ $res = $x->query();
+ foreach ($res as $row) {
+ error_log(json_encode($row));
+ }
+ exit;
HardwareParser::parseMachine('0A5D9E23-80F4-9C43-912C-96D80AE7E80B',
file_get_contents('/tmp/bla.json'));
echo 'Kweries: ' . Database::getQueryCount();