Skip to content
Snippets Groups Projects
Commit 71550f87 authored by fireice-uk's avatar fireice-uk
Browse files

Bug causing an extra comma

parent e3d4f119
No related branches found
No related tags found
No related merge requests found
......@@ -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()),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment