mirror of
https://github.com/xmrig/xmrig.git
synced 2025-03-12 09:37:35 +00:00
Fixed DMI memory speed.
This commit is contained in:
parent
0fa5db8fa3
commit
1424b2975f
1 changed files with 2 additions and 1 deletions
|
@ -171,7 +171,8 @@ xmrig::DmiMemory::DmiMemory(dmi_header *h)
|
|||
return;
|
||||
}
|
||||
|
||||
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);
|
||||
const uint64_t configuredSpeed = dmi_memory_device_speed(dmi_get<uint16_t>(h, 0x20), h->length >= 0x5C ? dmi_get<uint32_t>(h, 0x58) : 0) * 1000000ULL;
|
||||
m_speed = configuredSpeed ? configuredSpeed : m_speed;
|
||||
|
||||
if (h->length < 0x28) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue