aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-11-19 10:20:41 -0500
committerDeterminant <[email protected]>2018-11-19 10:20:41 -0500
commitc4071ef01a1869daa09e3bf3ac982fe8103492ac (patch)
treed2d709def622116fdb1c41fe0003d00a62107d42 /test
parent4fdac38ad5796cae03f827670655efd79d953699 (diff)
...
Diffstat (limited to 'test')
-rw-r--r--test/test_p2p_stress.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_p2p_stress.cpp b/test/test_p2p_stress.cpp
index 318e344..b272742 100644
--- a/test/test_p2p_stress.cpp
+++ b/test/test_p2p_stress.cpp
@@ -135,8 +135,8 @@ void install_proto(AppContext &app, const size_t &seg_buff_size) {
net.terminate(conn);
std::string s;
for (const auto &p: app.tc)
- s += salticidae::stringprintf(" %d(%d)", p.first.port, p.second.ncompleted);
- SALTICIDAE_LOG_INFO("%d completed:%s", app.addr.port, s.c_str());
+ s += salticidae::stringprintf(" %d(%d)", ntohs(p.first.port), p.second.ncompleted);
+ SALTICIDAE_LOG_INFO("%d completed:%s", ntohs(app.addr.port), s.c_str());
});
double t = salticidae::gen_rand_timeout(10);
tc.timer.add_with_timeout(t, 0);