Skip to content

Commit

Permalink
Bug causing an extra comma
Browse files Browse the repository at this point in the history
  • Loading branch information
fireice-uk committed Jul 18, 2017
1 parent e3d4f11 commit 71550f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit 71550f8

Please sign in to comment.