Switched from value to reference in switch_algo xmrig::Algorithm param
This commit is contained in:
parent
684feb38fd
commit
2ceb9c8749
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue