diff --git a/src/plugins/AMD.cpp b/src/plugins/AMD.cpp index 028f38a..4e4c40c 100644 --- a/src/plugins/AMD.cpp +++ b/src/plugins/AMD.cpp @@ -958,9 +958,10 @@ std::vector> getMaxMemoryClock(AMDGPUData data) { // Per kernel documentation, if there's only one index for memory clock, it means maximum auto lines = pstateSectionLinesWithRead("OD_MCLK", data); - if (lines.size() != 1 || lines.size() != 2) + if (lines.size() != 1 && lines.size() != 2) return {}; + // Index refers to nth line after 'OD_MCLK' auto index = (lines.size() == 1) ? 0 : 1; auto controllerRange = parsePstateRangeLineWithRead("MCLK", data);