mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-28 06:28:38 +01:00
Merge pull request #18 from fireice-uk/topic-larger-print-buf
Increase the scratchpad size to make sure we don't malform JSON
This commit is contained in:
@@ -911,8 +911,8 @@ void executor::http_json_report(std::string& out)
|
||||
if(iPoolCallTimes.size() > 0)
|
||||
fAvgResTime = double(iConnSec) / iPoolCallTimes.size();
|
||||
|
||||
char buffer[2048];
|
||||
res_error.reserve((vMineResults.size() - 1) * 128);
|
||||
char buffer[256];
|
||||
for(size_t i=1; i < vMineResults.size(); i++)
|
||||
{
|
||||
using namespace std::chrono;
|
||||
@@ -933,7 +933,7 @@ void executor::http_json_report(std::string& out)
|
||||
iPoolPing = iPoolCallTimes[n_calls/2];
|
||||
}
|
||||
|
||||
cn_error.reserve(vSocketLog.size() * 128);
|
||||
cn_error.reserve(vSocketLog.size() * 256);
|
||||
for(size_t i=0; i < vSocketLog.size(); i++)
|
||||
{
|
||||
using namespace std::chrono;
|
||||
|
||||
Reference in New Issue
Block a user