From 59b8c36cedc32f7240602abd77a87846ca37bd94 Mon Sep 17 00:00:00 2001 From: quackerd Date: Fri, 17 Mar 2023 21:13:05 +0100 Subject: [PATCH] multiarch --- util/memloadgen.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/memloadgen.cc b/util/memloadgen.cc index 80765ad..075e8cd 100644 --- a/util/memloadgen.cc +++ b/util/memloadgen.cc @@ -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; @@ -215,6 +216,9 @@ int main(int argc, char * argv[]) uint64_t newbps = ((sum / sz) * (double)pct / 100.0); 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; }