summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfireice-uk <fireice2@o2.pl>2017-01-16 14:39:03 +0000
committerfireice-uk <fireice2@o2.pl>2017-01-16 14:39:03 +0000
commit09b65fac78adf4c1e19de5383ea68b1b13b68e49 (patch)
tree5678ae9f55ae5a73c031b663c264f37996817f0a
parent0a32bad780000111d345938f186253cf9dfa4113 (diff)
downloadxmr-stak-09b65fac78adf4c1e19de5383ea68b1b13b68e49.zip
xmr-stak-09b65fac78adf4c1e19de5383ea68b1b13b68e49.tar.gz
Minor report fixes
-rw-r--r--executor.cpp6
-rw-r--r--executor.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/executor.cpp b/executor.cpp
index 44fcc53..61c58ef 100644
--- a/executor.cpp
+++ b/executor.cpp
@@ -580,7 +580,7 @@ void executor::result_report(std::string& out)
out.append("\nError details:\n");
if(ln > 1)
{
- out.append("| Count | Error text | Last seen |\n");
+ out.append("| Count | Error text | Last seen |\n");
for(size_t i=1; i < ln; i++)
{
snprintf(num, sizeof(num), "| %5llu | %-32.32s | %s |\n", int_port(vMineResults[i].count),
@@ -621,10 +621,10 @@ void executor::connection_report(std::string& out)
size_t ln = vSocketLog.size();
if(ln > 0)
{
- out.append("| Date | Error text |\n");
+ out.append("| Date | Error text |\n");
for(size_t i=0; i < ln; i++)
{
- snprintf(num, sizeof(num), "| %s | %-64.64s |\n",
+ snprintf(num, sizeof(num), "| %s | %-54.54s |\n",
time_format(date, sizeof(date), vSocketLog[i].time), vSocketLog[i].msg.c_str());
out.append(num);
}
diff --git a/executor.h b/executor.h
index e3111ea..368556e 100644
--- a/executor.h
+++ b/executor.h
@@ -146,7 +146,7 @@ private:
//Those stats are reset if we disconnect
inline void reset_stats()
{
- iPoolCallTimes.empty();
+ iPoolCallTimes.clear();
tPoolConnTime = std::chrono::system_clock::now();
iPoolHashes = 0;
iPoolDiff = 0;
OpenPOWER on IntegriCloud