mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-12-02 12:33:56 +01:00
Minor slipup
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
<Add library="libhwloc" />
|
||||
</Linker>
|
||||
<Unit filename="autoAdjust.hpp" />
|
||||
<Unit filename="autoAdjustHwloc.hpp" />
|
||||
<Unit filename="cli-miner.cpp" />
|
||||
<Unit filename="console.cpp" />
|
||||
<Unit filename="console.h" />
|
||||
@@ -108,6 +109,7 @@
|
||||
<Unit filename="executor.h" />
|
||||
<Unit filename="httpd.cpp" />
|
||||
<Unit filename="httpd.h" />
|
||||
<Unit filename="hwlocMemory.hpp" />
|
||||
<Unit filename="jconf.cpp" />
|
||||
<Unit filename="jconf.h" />
|
||||
<Unit filename="jext.h" />
|
||||
|
||||
Reference in New Issue
Block a user