diff options
Diffstat (limited to 'src/stateless/cp')
-rw-r--r-- | src/stateless/cp/trex_stateless_port.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/stateless/cp/trex_stateless_port.h b/src/stateless/cp/trex_stateless_port.h index 45eb16e8..2d15a1cc 100644 --- a/src/stateless/cp/trex_stateless_port.h +++ b/src/stateless/cp/trex_stateless_port.h @@ -79,7 +79,7 @@ public: * start traffic * throws TrexException in case of an error */ - void start_traffic(const TrexPortMultiplier &mul, double duration = -1); + void start_traffic(const TrexPortMultiplier &mul, double duration); /** * stop traffic @@ -211,6 +211,14 @@ public: } + /** + * returns the traffic multiplier currently being used by the DP + * + */ + double get_multiplier() { + return (m_current_per_core_m * m_cores_id_list.size()); + } + private: |