From 9ca1a6129b98d5d003c03db49b170dce4fcefb98 Mon Sep 17 00:00:00 2001 From: XMRig Date: Fri, 29 Jan 2021 01:23:35 +0700 Subject: [PATCH] #2066 Quick fix for AMD GPUs health data. --- src/backend/opencl/wrappers/AdlLib_linux.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/opencl/wrappers/AdlLib_linux.cpp b/src/backend/opencl/wrappers/AdlLib_linux.cpp index b297ec71..3a0738ee 100644 --- a/src/backend/opencl/wrappers/AdlLib_linux.cpp +++ b/src/backend/opencl/wrappers/AdlLib_linux.cpp @@ -1,8 +1,8 @@ /* XMRig - * Copyright 2008-2018 Advanced Micro Devices, Inc. - * Copyright 2018-2020 SChernykh - * Copyright 2020 Patrick Bollinger - * Copyright 2016-2020 XMRig , + * Copyright (c) 2008-2018 Advanced Micro Devices, Inc. + * Copyright (c) 2020 Patrick Bollinger + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -81,7 +81,7 @@ static inline std::string sysfs_prefix(const PciTopology &topology) { const std::string path = kPrefix + "0000:" + topology.toString().data() + "/hwmon/hwmon"; - for (uint32_t i = 1; i < 10; ++i) { + for (uint32_t i = 1; i < 100; ++i) { const std::string prefix = path + std::to_string(i) + "/"; if (sysfs_is_amdgpu(prefix + "name") && (sysfs_read(prefix + "temp1_input") || sysfs_read(prefix + "power1_average"))) { return prefix;