diff options
author | Tom Doemiller <tdoem@mail2tor.com> | 2018-01-09 13:57:52 +0000 |
---|---|---|
committer | psychocrypt <psychocryptHPC@gmail.com> | 2018-01-09 20:45:33 +0100 |
commit | 6a508ce409e2f634f81ed26a959aa88d0414d542 (patch) | |
tree | 5f62f9b72bceff64739b50eab51394e40bdd9365 /xmrstak/backend/cpu/autoAdjust.hpp | |
parent | 8d06753e462a7aa2185c38cc88be66185eb664f0 (diff) | |
download | xmr-stak-6a508ce409e2f634f81ed26a959aa88d0414d542.zip xmr-stak-6a508ce409e2f634f81ed26a959aa88d0414d542.tar.gz |
Fix cache size detection
Diffstat (limited to 'xmrstak/backend/cpu/autoAdjust.hpp')
-rw-r--r-- | xmrstak/backend/cpu/autoAdjust.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/backend/cpu/autoAdjust.hpp b/xmrstak/backend/cpu/autoAdjust.hpp index 7bdb14e..b5575e9 100644 --- a/xmrstak/backend/cpu/autoAdjust.hpp +++ b/xmrstak/backend/cpu/autoAdjust.hpp @@ -142,7 +142,7 @@ private: } L3KB_size = ((get_masked(cpu_info[1], 31, 22) + 1) * (get_masked(cpu_info[1], 21, 12) + 1) * - (get_masked(cpu_info[1], 11, 0) + 1) * (cpu_info[2] + 1)) / halfHashMemSize; + (get_masked(cpu_info[1], 11, 0) + 1) * (cpu_info[2] + 1)) / 1024; return true; } |