multiarch
This commit is contained in:
parent
4effb3f1bd
commit
59b8c36ced
@ -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));
|
||||
|
||||
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_trans = trans;
|
||||
@ -216,6 +217,9 @@ int main(int argc, char * argv[])
|
||||
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);
|
||||
|
||||
ofile << "p," << cur_time << "," << pct << std::endl;
|
||||
ofile.flush();
|
||||
|
||||
rate_ctrl = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user