multiarch

This commit is contained in:
quackerd 2023-03-17 21:13:05 +01:00
parent 4effb3f1bd
commit 59b8c36ced

View File

@ -175,7 +175,8 @@ int main(int argc, char * argv[])
uint64_t bps = (uint64_t)((double)((trans - prev_trans) * transaction_size) / ((double)(cur_ts - prev_ts) / (double)S2NS)); 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, "%ldB,%ldM\n", bps, bps / 1024 / 1024); ntr(NTR_DEP_USER1, NTR_LEVEL_INFO, "%ldB,%ldM\n", bps, bps / 1024 / 1024);
ofile << bps << std::endl; ofile << "s," << cur_time << "," << bps << std::endl;
ofile.flush();
prev_ts = cur_ts; prev_ts = cur_ts;
prev_trans = trans; prev_trans = trans;
@ -215,6 +216,9 @@ int main(int argc, char * argv[])
uint64_t newbps = ((sum / sz) * (double)pct / 100.0); uint64_t newbps = ((sum / sz) * (double)pct / 100.0);
mgen->set_transactions(newbps / transaction_size); mgen->set_transactions(newbps / transaction_size);
ntr(NTR_DEP_USER1, NTR_LEVEL_INFO, "adjusted target bps to %u%% = %ldB ~= %ldM\n", pct, newbps, newbps / 1024 / 1024); ntr(NTR_DEP_USER1, NTR_LEVEL_INFO, "adjusted target bps to %u%% = %ldB ~= %ldM\n", pct, newbps, newbps / 1024 / 1024);
ofile << "p," << cur_time << "," << pct << std::endl;
ofile.flush();
rate_ctrl = 1; rate_ctrl = 1;
} }