mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 07:55:04 -05:00
Added API port to summary.
This commit is contained in:
@@ -205,6 +205,7 @@ if (WITH_HTTPD AND MHD_FOUND)
|
|||||||
set(HTTPD_SOURCES src/api/Httpd.h src/api/Httpd.cpp)
|
set(HTTPD_SOURCES src/api/Httpd.h src/api/Httpd.cpp)
|
||||||
else()
|
else()
|
||||||
add_definitions(/DXMRIG_NO_HTTPD)
|
add_definitions(/DXMRIG_NO_HTTPD)
|
||||||
|
add_definitions(/DXMRIG_NO_API)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(src)
|
include_directories(src)
|
||||||
|
|||||||
@@ -127,6 +127,18 @@ static void print_pools()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef XMRIG_NO_API
|
||||||
|
static void print_api()
|
||||||
|
{
|
||||||
|
if (Options::i()->apiPort() == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log::i()->text(Options::i()->colors() ? "\x1B[01;32m * \x1B[01;37mAPI PORT: \x1B[01;36m%d" : " * API PORT: %d", Options::i()->apiPort());
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static void print_commands()
|
static void print_commands()
|
||||||
{
|
{
|
||||||
if (Options::i()->colors()) {
|
if (Options::i()->colors()) {
|
||||||
@@ -145,6 +157,11 @@ void Summary::print()
|
|||||||
print_cpu();
|
print_cpu();
|
||||||
print_threads();
|
print_threads();
|
||||||
print_pools();
|
print_pools();
|
||||||
|
|
||||||
|
# ifndef XMRIG_NO_API
|
||||||
|
print_api();
|
||||||
|
# endif
|
||||||
|
|
||||||
print_commands();
|
print_commands();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user