diff options
author | Simon Rettberg | 2016-10-12 18:26:59 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-10-12 18:26:59 +0200 |
commit | 644b78dfcfc9005978b3e14c7f12d77c1f4596d9 (patch) | |
tree | e67ff4ce1166a2deffcf561552e81bd9500be1a9 /modules-available/statistics | |
parent | added README file (diff) | |
download | slx-admin-644b78dfcfc9005978b3e14c7f12d77c1f4596d9.tar.gz slx-admin-644b78dfcfc9005978b3e14c7f12d77c1f4596d9.tar.xz slx-admin-644b78dfcfc9005978b3e14c7f12d77c1f4596d9.zip |
[statistics] Fix cache lookup of device pciid
Diffstat (limited to 'modules-available/statistics')
-rw-r--r-- | modules-available/statistics/inc/parser.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/statistics/inc/parser.inc.php b/modules-available/statistics/inc/parser.inc.php index 07bed8e5..ba69272a 100644 --- a/modules-available/statistics/inc/parser.inc.php +++ b/modules-available/statistics/inc/parser.inc.php @@ -192,11 +192,11 @@ class Parser { } else { $new['ven'] = $res['value']; } - $res = Page_Statistics::getPciId('DEVICE', $new['ven'] . ':' . $new['dev']); + $res = Page_Statistics::getPciId('DEVICE', $new['dev']); if ($res === false || $res['dateline'] < $NOW) { $new['lookupDev'] = 'do-lookup'; } else { - $new['dev'] = $res['value']; + $new['dev'] = $res['value'] . ' (' . $new['dev'] . ')'; } $pci[$entry['class']]['entries'][] = $new; } |