From 1c632eee756643bec06793a21eaaee883e69d7ac Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Fri, 14 Apr 2023 18:23:09 +0200 Subject: [PATCH] Fix GPU resource avaialble check. #135 --- CHANGELOG.md | 1 + src/fah/client/Units.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2b3552..8d47037 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ Folding@home Client Changelog ============================= ## v8.1.17 + - Fix GPU resource avaialble check. #135 - Don't show ``1B of 1B`` for completed up/download size. #130 - Only reset retry count if WU has run for more than 5 minutes. #134 diff --git a/src/fah/client/Units.cpp b/src/fah/client/Units.cpp index 90f2a82..197b5b1 100644 --- a/src/fah/client/Units.cpp +++ b/src/fah/client/Units.cpp @@ -203,7 +203,7 @@ void Units::update() { bool runable = minCPUs <= remainingCPUs || minCPUs < 2; std::set gpusWithWU = remainingGPUs; - for (auto id: unitGPUs) runable |= gpusWithWU.erase(id); + for (auto id: unitGPUs) runable &= gpusWithWU.erase(id); if (runable) { remainingGPUs = gpusWithWU;