Truncate perc print

This commit is contained in:
jl777
2019-01-12 16:22:59 -11:00
parent 24cd52e895
commit b6eed13678

View File

@@ -374,7 +374,7 @@ UniValue MarmaraPoolPayout(uint64_t txfee,int32_t firstheight,double perc,char *
result.push_back(Pair("totalpayout",ValueFromAmount(totalpayout)));
result.push_back(Pair("totalshares",shares));
result.push_back(Pair("poolfee",ValueFromAmount(poolfee)));
result.push_back(Pair("perc",100. * (double)poolfee/totalpayout));
result.push_back(Pair("perc",ValueFromAmount((int64_t)(100. * (double)poolfee/totalpayout))));
result.push_back(Pair("payouts",a));
}
}