aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/pci_util.c
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-03-01 23:38:15 +0100
committerhwspeedy <ns@bigbear.dk>2024-03-01 23:38:15 +0100
commit0ca6127eaef7bbb0f2b66742009ec22b979196cd (patch)
tree0b865f65ee56141d92d997d37cc2c449767ea6d0 /hardinfo2/pci_util.c
parent021a060f9495d64f98f5c8eefff2cd786bac0250 (diff)
FIX sysfs pcie current width was wrong
Diffstat (limited to 'hardinfo2/pci_util.c')
-rw-r--r--hardinfo2/pci_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo2/pci_util.c b/hardinfo2/pci_util.c
index d4a9dea3..a97d5dc6 100644
--- a/hardinfo2/pci_util.c
+++ b/hardinfo2/pci_util.c
@@ -299,7 +299,7 @@ static gboolean pci_get_device_sysfs(uint32_t dom, uint32_t bus, uint32_t dev, u
s->pcie_width_max = strtoul(tmp, NULL, 0);
free(tmp);
}
- tmp = _sysfs_bus_pci(dom, bus, dev, func, "max_link_width");
+ tmp = _sysfs_bus_pci(dom, bus, dev, func, "current_link_width");
if (tmp) {
s->pcie_width_curr = strtoul(tmp, NULL, 0);
free(tmp);