Add support for HDRhistogram
[csit.git] / resources / libraries / python / TrafficGenerator.py
index b6d28a4..49c19b1 100644 (file)
@@ -336,10 +336,10 @@ class TrafficGenerator(AbstractMeasurer):
 
             # Start TRex.
             cmd = ("sh -c 'cd {dir}/scripts/ && "
-                   "nohup ./t-rex-64 {mode} -i -c 7 > "
+                   "nohup ./t-rex-64 --hdrh{mode} -i -c 7 > "
                    "/tmp/trex.log 2>&1 &' > /dev/null"
                    .format(dir=Constants.TREX_INSTALL_DIR,
-                           mode='--astf' if osi_layer == 'L7' else ''))
+                           mode=' --astf' if osi_layer == 'L7' else ''))
             try:
                 exec_cmd_no_error(self._node, cmd, sudo=True)
             except RuntimeError: