mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-19 05:58:41 +02:00
Minor tweaks
This commit is contained in:
+3
-3
@@ -479,7 +479,7 @@ void executor::hashrate_report()
|
||||
output.append(hps_format(fHighestHps, num, sizeof(num)));
|
||||
output.append(" H/s\n");
|
||||
|
||||
fputs(output.c_str(), stdout);
|
||||
printer::inst()->print_str(output.c_str());
|
||||
}
|
||||
|
||||
char* time_format(char* buf, size_t len, std::chrono::system_clock::time_point time)
|
||||
@@ -562,7 +562,7 @@ void executor::result_report()
|
||||
else
|
||||
out.append("Yay! No errors.\n");
|
||||
|
||||
fputs(out.c_str(), stdout);
|
||||
printer::inst()->print_str(output.c_str());
|
||||
}
|
||||
|
||||
void executor::connection_report()
|
||||
@@ -601,5 +601,5 @@ void executor::connection_report()
|
||||
else
|
||||
out.append("Yay! No errors.\n");
|
||||
|
||||
fputs(out.c_str(), stdout);
|
||||
printer::inst()->print_str(output.c_str());
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
#include "jext.h"
|
||||
#include "socks.h"
|
||||
|
||||
#define AGENTID_STR "geezer-cli/0.9"
|
||||
#define AGENTID_STR "xmr-stak-cpu/1.0"
|
||||
|
||||
using namespace rapidjson;
|
||||
|
||||
|
||||
+1
-1
@@ -238,7 +238,7 @@ bool minethd::self_test()
|
||||
|
||||
if((ctx1 = minethd_alloc_ctx()) == nullptr)
|
||||
{
|
||||
cryptonight_free_ctx(ctx1);
|
||||
cryptonight_free_ctx(ctx0);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ inline void sock_init()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
inline void sock_close(SOCKET s)
|
||||
{
|
||||
shutdown(s, SD_BOTH);
|
||||
@@ -65,8 +64,8 @@ inline const char* sock_gai_strerror(int err, char* buf, size_t len)
|
||||
inline void sock_init() {}
|
||||
typedef int SOCKET;
|
||||
|
||||
#define INVALID_SOCKET (-1)
|
||||
#define SOCKET_ERROR (-1)
|
||||
#define INVALID_SOCKET (-1)
|
||||
#define SOCKET_ERROR (-1)
|
||||
|
||||
inline void sock_close(SOCKET s)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user