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 @@
+