mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 10:01:06 +00:00
Small code cleanups.
This commit is contained in:
parent
a5dcd6dd1f
commit
948f23c7d9
3 changed files with 4 additions and 3 deletions
|
@ -55,7 +55,7 @@ xmrig::App::App(Process *process) :
|
|||
m_httpd(nullptr),
|
||||
m_signals(nullptr)
|
||||
{
|
||||
m_controller = new xmrig::Controller(process);
|
||||
m_controller = new Controller(process);
|
||||
if (m_controller->init() != 0) {
|
||||
return;
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ void xmrig::App::onSignal(int signum)
|
|||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
close();
|
||||
|
|
|
@ -113,6 +113,7 @@ static AlgoData const xmrStakAlgorithms[] = {
|
|||
{ "cryptonight_alloy", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_XAO }, // xmr-stak-alloy
|
||||
{ "cryptonight_turtle", nullptr, xmrig::CRYPTONIGHT_PICO, xmrig::VARIANT_TRTL },
|
||||
{ "cryptonight_gpu", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_GPU },
|
||||
{ "cryptonight_r", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_4 },
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ int xmrig::Controller::init()
|
|||
{
|
||||
Cpu::init();
|
||||
|
||||
d_ptr->config = xmrig::Config::load(d_ptr->process, this);
|
||||
d_ptr->config = Config::load(d_ptr->process, this);
|
||||
if (!d_ptr->config) {
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue