mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-10 09:02:45 -05:00
Switched from value to reference in switch_algo xmrig::Algorithm param
This commit is contained in:
@@ -213,7 +213,7 @@ void Workers::soft_stop() // stop current workers leaving uv stuff intact (used
|
|||||||
}
|
}
|
||||||
|
|
||||||
// setups workers based on specified algorithm (or its basic perf algo more specifically)
|
// setups workers based on specified algorithm (or its basic perf algo more specifically)
|
||||||
void Workers::switch_algo(const xmrig::Algorithm algorithm)
|
void Workers::switch_algo(const xmrig::Algorithm& algorithm)
|
||||||
{
|
{
|
||||||
if (m_status.algo == algorithm.algo()) return;
|
if (m_status.algo == algorithm.algo()) return;
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public:
|
|||||||
static void setJob(const Job &job, bool donate);
|
static void setJob(const Job &job, bool donate);
|
||||||
static void start(xmrig::Controller *controller);
|
static void start(xmrig::Controller *controller);
|
||||||
// setups workers based on specified algorithm (or its basic perf algo more specifically)
|
// setups workers based on specified algorithm (or its basic perf algo more specifically)
|
||||||
static void switch_algo(xmrig::Algorithm);
|
static void switch_algo(const xmrig::Algorithm&);
|
||||||
static void stop();
|
static void stop();
|
||||||
static void submit(const JobResult &result);
|
static void submit(const JobResult &result);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user