diff options
author | Simon Rettberg | 2022-04-27 16:15:32 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-04-27 16:15:32 +0200 |
commit | c3ad4b3179a97bf22261d95fb4db67de77e1f173 (patch) | |
tree | aa5d8cdf1e8d44cc054c2a297ae23f8e2c8c69f1 /modules-available/statistics/inc | |
parent | [passthrough] Fix permission name (diff) | |
download | slx-admin-c3ad4b3179a97bf22261d95fb4db67de77e1f173.tar.gz slx-admin-c3ad4b3179a97bf22261d95fb4db67de77e1f173.tar.xz slx-admin-c3ad4b3179a97bf22261d95fb4db67de77e1f173.zip |
[statistics] Honor pci device revision for passthrough display
Diffstat (limited to 'modules-available/statistics/inc')
-rw-r--r-- | modules-available/statistics/inc/hardwareparserlegacy.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/inc/hardwareparserlegacy.inc.php b/modules-available/statistics/inc/hardwareparserlegacy.inc.php index 277f6d4a..2965a3fb 100644 --- a/modules-available/statistics/inc/hardwareparserlegacy.inc.php +++ b/modules-available/statistics/inc/hardwareparserlegacy.inc.php @@ -136,7 +136,7 @@ class HardwareParserLegacy public static function parsePci(string $data): array { - preg_match_all('/[a-f0-9:.]{7}\s+"(Class\s*)?(?<class>[a-f0-9]{4})"\s+"(?<vendor>[a-f0-9]{4})"\s+"(?<device>[a-f0-9]{4})"/is', $data, $out, PREG_SET_ORDER); + preg_match_all('/[a-f0-9:.]{7}\s+"(Class\s*)?(?<class>[a-f0-9]{4})"\s+"(?<vendor>[a-f0-9]{4})"\s+"(?<device>[a-f0-9]{4})".*(:?-r(?<rev>[0-9a-f]+))?/is', $data, $out, PREG_SET_ORDER); return $out; } |