From 5c174969a7d269e5ca8ab919a58cb3e11786c274 Mon Sep 17 00:00:00 2001 From: fireice-uk Date: Sun, 9 Jul 2017 21:17:17 +0100 Subject: [PATCH] Minor slipup --- autoAdjustHwloc.hpp | 4 ++-- xmr-stak-cpu.cbp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/autoAdjustHwloc.hpp b/autoAdjustHwloc.hpp index 936eff3..8e4acd4 100644 --- a/autoAdjustHwloc.hpp +++ b/autoAdjustHwloc.hpp @@ -119,14 +119,14 @@ private: return; } - size_t cacheSize = obj->attr->cache.size; if(!isCacheInclusive(obj)) { for(size_t i=0; i < obj->arity; i++) { + hwloc_obj_t l2obj = obj->children[i]; //If L2 is exclusive and greater or equal to 2MB add room for one more hash - if(obj->type == HWLOC_OBJ_CACHE && obj->attr != nullptr && obj->attr->cache.size >= hashSize) + if(l2obj->type == HWLOC_OBJ_CACHE && l2obj->attr != nullptr && l2obj->attr->cache.size >= hashSize) cacheSize += hashSize; } } diff --git a/xmr-stak-cpu.cbp b/xmr-stak-cpu.cbp index b9d6e9d..c2f3774 100644 --- a/xmr-stak-cpu.cbp +++ b/xmr-stak-cpu.cbp @@ -70,6 +70,7 @@ + @@ -108,6 +109,7 @@ +