mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-19 05:58:41 +02:00
Bug causing an extra comma
This commit is contained in:
+1
-1
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user