From 6a508ce409e2f634f81ed26a959aa88d0414d542 Mon Sep 17 00:00:00 2001 From: Tom Doemiller <tdoem@mail2tor.com> Date: Tue, 9 Jan 2018 13:57:52 +0000 Subject: [PATCH] Fix cache size detection --- xmrstak/backend/cpu/autoAdjust.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- GitLab