better printing

This commit is contained in:
quackerd 2023-03-05 15:59:42 +01:00
parent 6cd0e7d12f
commit 28d469e8ff

View File

@ -184,7 +184,7 @@ int main(int argc, char * argv[])
uint64_t trans = mgen->get_transactions();
uint64_t bps = (uint64_t)((double)((trans - prev_trans) * transaction_size) / ((double)(cur_ts - prev_ts) / (double)S2NS));
ntr(NTR_DEP_USER1, NTR_LEVEL_INFO, "bps = %ld ~= %ldM\n", bps, bps / 1024 / 1024);
ntr(NTR_DEP_USER1, NTR_LEVEL_INFO, "%ldB,%ldM\n", bps, bps / 1024 / 1024);
ofile << bps << std::endl;
prev_ts = cur_ts;