Compare commits

..

1 Commits

Author SHA1 Message Date
XMRig 4062f8085f #68 test case. 2017-08-21 22:17:02 +03:00
4 changed files with 5 additions and 11 deletions

View File

@ -1,6 +1,3 @@
# v2.3.1
- [#68](https://github.com/xmrig/xmrig/issues/68) Fixed compatibility with Docker containers, was nothing print on console.
# v2.3.0
- Added `--cpu-priority` option (0 idle, 2 normal to 5 highest).
- Added `--user-agent` option, to set custom user-agent string for pool. For example `cpuminer-multi/0.1`.

View File

@ -125,7 +125,6 @@ else()
set(EXTRA_LIBS pthread)
endif()
add_definitions(/D__STDC_FORMAT_MACROS)
add_definitions(/DUNICODE)
#add_definitions(/DAPP_DEBUG)
@ -149,6 +148,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
if (WIN32)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
add_definitions(/D__STDC_FORMAT_MACROS)
else()
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
endif()

View File

@ -133,12 +133,9 @@ void ConsoleLog::text(const char* fmt, va_list args)
bool ConsoleLog::isWritable() const
{
if (uv_is_writable(reinterpret_cast<const uv_stream_t*>(&m_tty)) != 1) {
return false;
}
printf("uv_is_writable: %d, uv_guess_handle: %d\n", uv_is_writable(reinterpret_cast<const uv_stream_t*>(&m_tty)), uv_guess_handle(1));
const uv_handle_type type = uv_guess_handle(1);
return type == UV_TTY || type == UV_NAMED_PIPE;
return true;
}

View File

@ -27,14 +27,14 @@
#define APP_ID "xmrig"
#define APP_NAME "XMRig"
#define APP_DESC "XMRig CPU miner"
#define APP_VERSION "2.3.1"
#define APP_VERSION "2.3.0"
#define APP_DOMAIN "xmrig.com"
#define APP_SITE "www.xmrig.com"
#define APP_COPYRIGHT "Copyright (C) 2016-2017 xmrig.com"
#define APP_VER_MAJOR 2
#define APP_VER_MINOR 3
#define APP_VER_BUILD 1
#define APP_VER_BUILD 0
#define APP_VER_REV 0
#ifdef _MSC_VER