Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
HWMON was not working for Amd gpu with bus id > 9
Browse files Browse the repository at this point in the history
  • Loading branch information
biospb authored Jan 9, 2020
1 parent 2e262c6 commit e25f9d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libhwmon/wrapamdsysfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ wrap_amdsysfs_handle* wrap_amdsysfs_create()

try
{
PciDomain = std::stoi(pciIdParts.at(0), nullptr, 10);
PciBus = std::stoi(pciIdParts.at(1), nullptr, 10);
PciDevice = std::stoi(pciIdParts.at(2), nullptr, 10);
PciFunction = std::stoi(pciIdParts.at(3), nullptr, 10);
PciDomain = std::stoi(pciIdParts.at(0), nullptr, 16);
PciBus = std::stoi(pciIdParts.at(1), nullptr, 16);
PciDevice = std::stoi(pciIdParts.at(2), nullptr, 16);
PciFunction = std::stoi(pciIdParts.at(3), nullptr, 16);
}
catch (const std::exception&)
{
Expand Down

0 comments on commit e25f9d1

Please sign in to comment.