diff options
author | 2015-11-15 18:17:13 +0200 | |
---|---|---|
committer | 2015-11-15 18:17:13 +0200 | |
commit | f9365e5150f9479dfbf4436d22874f121afbb5c8 (patch) | |
tree | f97b9dfd52b880eeab0aba631e74231abdb851f1 /src/stateless/dp/trex_stateless_dp_core.cpp | |
parent | 8017ebe740a1c1d138559795aea9d8ee72236da2 (diff) | |
parent | 94b1238942da24e47fb3e689bf695e815a604eb0 (diff) |
Merge branch 'rpc_intg1'
Diffstat (limited to 'src/stateless/dp/trex_stateless_dp_core.cpp')
-rw-r--r-- | src/stateless/dp/trex_stateless_dp_core.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stateless/dp/trex_stateless_dp_core.cpp b/src/stateless/dp/trex_stateless_dp_core.cpp index 96c18dbd..eabd6fdb 100644 --- a/src/stateless/dp/trex_stateless_dp_core.cpp +++ b/src/stateless/dp/trex_stateless_dp_core.cpp @@ -207,14 +207,12 @@ TrexStatelessDpCore::add_cont_stream(TrexStream * stream, } void -TrexStatelessDpCore::start_traffic(TrexStreamsCompiledObj *obj) { +TrexStatelessDpCore::start_traffic(TrexStreamsCompiledObj *obj, double duration) { for (auto single_stream : obj->get_objects()) { add_cont_stream(single_stream.m_stream,obj); } - double duration=obj->get_simulation_duration(); - - if ( duration >0.0){ + if ( duration > 0.0 ){ add_duration( duration ); } } |