From d542aa6f20070f76631b9695ef9bcf9c70c8bed2 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Tue, 21 Jun 2016 17:31:50 +0200 Subject: [PATCH] mpExperienceDITG: either poisson or burst --- src/mpExperienceDITG.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mpExperienceDITG.py b/src/mpExperienceDITG.py index df07d22..a6eb2d8 100644 --- a/src/mpExperienceDITG.py +++ b/src/mpExperienceDITG.py @@ -52,8 +52,14 @@ class MpExperienceDITG(MpExperience): def getClientCmd(self): s = MpExperienceDITG.ITGSEND_BIN + " -a " + self.mpConfig.getServerIP() + \ - " -T TCP -k " + self.kbytes + " -l " + MpExperienceDITG.DITG_TEMP_LOG + " -B C " + self.bursts_on_packets_sec + " C " + self.bursts_off_packets_sec + " && " + \ - MpExperienceDITG.ITGDEC_BIN + " " + MpExperienceDITG.DITG_TEMP_LOG + " &> " + MpExperienceDITG.DITG_LOG + " -T TCP -k " + self.kbytes + " -l " + MpExperienceDITG.DITG_TEMP_LOG + + if self.mean_poisson_packets_sec: + s += " -O " + self.mean_poisson_packets_sec + elif self.bursts_on_packets_sec and self.bursts_off_packets_sec: + s += " -B C " + self.bursts_on_packets_sec + " C " + self.bursts_off_packets_sec + + s += " && " + MpExperienceDITG.ITGDEC_BIN + " " + MpExperienceDITG.DITG_TEMP_LOG + " &> " + MpExperienceDITG.DITG_LOG print(s) return s