From: Christian Trautman Date: Thu, 25 May 2017 14:43:34 +0000 (-0400) Subject: xena_cont_bug_fix: Fix duration issue X-Git-Tag: opnfv-5.0.RC1~40 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=8d528f2b4c66d94ea8760053f9bc75c595630056;p=vswitchperf.git xena_cont_bug_fix: Fix duration issue Port duration is in microseconds. I broke this with a previous commit. Change-Id: Id2770149355f40107ab8ee0523482b5867e0e72a Signed-off-by: Christian Trautman --- diff --git a/tools/pkt_gen/xena/xena.py b/tools/pkt_gen/xena/xena.py index 31347c5f..b72a59dd 100755 --- a/tools/pkt_gen/xena/xena.py +++ b/tools/pkt_gen/xena/xena.py @@ -448,7 +448,7 @@ class Xena(ITrafficGenerator): self._params['traffic']['l2']['framesize']) stream.set_packet_payload('incrementing', '0x00') stream.set_payload_id(payload_id) - port.set_port_time_limit(self._duration) + port.set_port_time_limit(self._duration * 1000000) if self._params['traffic']['l2']['framesize'] == 64: # set micro tpld