This commit is contained in:
jl777
2016-10-24 12:26:09 -03:00
parent d836ec3f63
commit 0d1959519e

View File

@@ -418,7 +418,7 @@ Value paxprices(const Array& params, bool fHelp)
Object ret; uint64_t relvolume,prices[4096]; uint32_t i,n; int32_t heights[sizeof(prices)/sizeof(*prices)];
std::string base = params[0].get_str();
std::string rel = params[1].get_str();
int32_t max = atoi(params[2].get_str().c_str());
int32_t maxsamples = atoi(params[2].get_str().c_str());
if ( maxsamples < 60 )
maxsamples = 60;
else if ( maxsamples > sizeof(heights)/sizeof(*heights) )