Added basic Linux support.
This commit is contained in:
parent
11e0d3de3a
commit
05e6f66169
7 changed files with 177 additions and 51 deletions
|
@ -170,7 +170,7 @@ xmrig::DmiMemory::DmiMemory(dmi_header *h)
|
|||
return;
|
||||
}
|
||||
|
||||
m_speed = std::max(m_speed, dmi_memory_device_speed(dmi_get<uint16_t>(h, 0x20), h->length >= 0x5C ? dmi_get<uint32_t>(h, 0x58) : 0) * 1000000ULL);
|
||||
m_speed = std::max<uint64_t>(m_speed, dmi_memory_device_speed(dmi_get<uint16_t>(h, 0x20), h->length >= 0x5C ? dmi_get<uint32_t>(h, 0x58) : 0) * 1000000ULL);
|
||||
|
||||
if (h->length < 0x28) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue