1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-17 03:22:48 -05:00

Update base.

This commit is contained in:
XMRig
2020-04-29 14:17:33 +07:00
parent b38046db46
commit 46e49cde0b
40 changed files with 162 additions and 244 deletions

View File

@@ -115,7 +115,27 @@ xmrig::Process::Process(int argc, char **argv) :
{
srand(static_cast<unsigned int>(Chrono::currentMSecsSinceEpoch() ^ reinterpret_cast<uintptr_t>(this)));
setDataDir(m_arguments.value("--data-dir"));
setDataDir(m_arguments.value("--data-dir", "-d"));
}
int xmrig::Process::pid()
{
# if UV_VERSION_HEX >= 0x011200
return uv_os_getpid();
# else
return 0;
# endif
}
int xmrig::Process::ppid()
{
# if UV_VERSION_HEX >= 0x011000
return uv_os_getppid();
# else
return 0;
# endif
}