comment corrected

This commit is contained in:
dimxy
2019-04-27 17:29:41 +05:00
parent f5aea6c1bd
commit 6e8e695bc8

View File

@@ -1337,7 +1337,7 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight)
for (auto b : bets) {
totalbets += b.amount;
totalprofits += b.profits;
costbasis += b.amount * (b.costbasis / PRICES_NORMFACTOR); // prevent overflow
costbasis += b.amount * (b.costbasis / PRICES_NORMFACTOR); // prevent int64 overflow
std::cerr << "PricesInfo() acc costbasis=" << costbasis << " b.amount=" << b.amount << " b.costbasis/PRICES_NORMFACTOR=" << (b.costbasis / PRICES_NORMFACTOR) << std::endl;
}