summaryrefslogtreecommitdiffstats
path: root/executor.cpp
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2017-07-18 22:03:57 +0100
committerfireice-uk <fireice-uk@users.noreply.github.com>2017-07-18 22:03:57 +0100
commit71550f87cece411a5a45a2984ebafcc1feae1d1b (patch)
treeb2bcff5178f08ae86f80837ac68b43c1076e39ff /executor.cpp
parente3d4f1196326538c7901f8985e42cc7bdff2814b (diff)
downloadxmr-stak-71550f87cece411a5a45a2984ebafcc1feae1d1b.zip
xmr-stak-71550f87cece411a5a45a2984ebafcc1feae1d1b.tar.gz
Bug causing an extra comma
Diffstat (limited to 'executor.cpp')
-rw-r--r--executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor.cpp b/executor.cpp
index 4e5917d..948b156 100644
--- a/executor.cpp
+++ b/executor.cpp
@@ -899,7 +899,7 @@ void executor::http_json_report(std::string& out)
for(size_t i=1; i < vMineResults.size(); i++)
{
using namespace std::chrono;
- if(i != 0) res_error.append(1, ',');
+ if(i != 1) res_error.append(1, ',');
snprintf(buffer, sizeof(buffer), sJsonApiResultError, int_port(vMineResults[i].count),
int_port(duration_cast<seconds>(vMineResults[i].time.time_since_epoch()).count()),
OpenPOWER on IntegriCloud