diff --git a/src/hw/dmi/DmiMemory.cpp b/src/hw/dmi/DmiMemory.cpp index 5b36e2ba..05af0962 100644 --- a/src/hw/dmi/DmiMemory.cpp +++ b/src/hw/dmi/DmiMemory.cpp @@ -171,7 +171,8 @@ xmrig::DmiMemory::DmiMemory(dmi_header *h) return; } - m_speed = std::max(m_speed, dmi_memory_device_speed(dmi_get(h, 0x20), h->length >= 0x5C ? dmi_get(h, 0x58) : 0) * 1000000ULL); + const uint64_t configuredSpeed = dmi_memory_device_speed(dmi_get(h, 0x20), h->length >= 0x5C ? dmi_get(h, 0x58) : 0) * 1000000ULL; + m_speed = configuredSpeed ? configuredSpeed : m_speed; if (h->length < 0x28) { return;