mpExperienceDITG: fix silly bug

This commit is contained in:
Quentin De Coninck 2016-06-07 16:10:47 +02:00
parent c2436d574a
commit 040a8229e7
2 changed files with 9 additions and 9 deletions

View File

@ -41,8 +41,8 @@ class MpExperienceDITG(MpExperience):
"""
self.kbytes = self.xpParam.getParam(MpParamXp.DITGKBYTES)
self.mean_poisson_packets_sec = self.xpParam.getParam(MpParamXp.DITGMEANPOISSONPACKETSSEC)
self.bursts_on_packets_sec = self.xpParam.getParam(MpParamXp.BURSTSONPACKETSSEC)
self.bursts_off_packets_sec = self.xpParam.getParam(MpParamXp.BURSTSOFFPACKETSSEC)
self.bursts_on_packets_sec = self.xpParam.getParam(MpParamXp.DITGBURSTSONPACKETSSEC)
self.bursts_off_packets_sec = self.xpParam.getParam(MpParamXp.DITGBURSTSOFFPACKETSSEC)
def prepare(self):
MpExperience.prepare(self)
@ -54,9 +54,9 @@ class MpExperienceDITG(MpExperience):
s = MpExperienceDITG.ITGSEND_BIN + " -a " + self.mpConfig.getServerIP() + \
" -T TCP -k " + self.kbytes + " -l " + MpExperienceDITG.DITG_TEMP_LOG
if self.mean_poisson_packets_sec:
if self.mean_poisson_packets_sec != "0":
s += " -O " + self.mean_poisson_packets_sec
elif self.bursts_on_packets_sec and self.bursts_off_packets_sec:
elif self.bursts_on_packets_sec != "0" and self.bursts_off_packets_sec != "0":
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

View File

@ -52,8 +52,8 @@ class MpParamXp(MpParam):
VLCTIME = "vlcTime"
DITGKBYTES = "ditgKBytes"
DITGMEANPOISSONPACKETSSEC = "ditgMeanPoissonPacketsSec"
BURSTSONPACKETSSEC = "burstsOnPacketsSec"
BURSTSOFFPACKETSSEC = "burstsOffPacketsSec"
DITGBURSTSONPACKETSSEC = "ditgBurstsOnPacketsSec"
DITGBURSTSOFFPACKETSSEC = "ditgBurstsOffPacketsSec"
PRIOPATH0 = "prioPath0"
PRIOPATH1 = "prioPath1"
BACKUPPATH0 = "backupPath0"
@ -131,9 +131,9 @@ class MpParamXp(MpParam):
defaultValue[VLCFILE] = "bunny_ibmff_360.mpd"
defaultValue[VLCTIME] = "0"
defaultValue[DITGKBYTES] = "10000"
defaultValue[DITGMEANPOISSONPACKETSSEC] = "1500"
defaultValue[BURSTSONPACKETSSEC] = "2250"
defaultValue[BURSTSOFFPACKETSSEC] = "750"
defaultValue[DITGMEANPOISSONPACKETSSEC] = "0"
defaultValue[DITGBURSTSONPACKETSSEC] = "0"
defaultValue[DITGBURSTSOFFPACKETSSEC] = "0"
defaultValue[PRIOPATH0] = "0"
defaultValue[PRIOPATH1] = "0"
defaultValue[BACKUPPATH0] = "0"