mpExperienceHTTP(S): added time command at client side

Know how much time wget was launched, quicker to analyze
This commit is contained in:
Quentin De Coninck 2016-04-18 09:41:14 +02:00
parent 600d59cd88
commit 758933b342
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ class MpExperienceHTTP(MpExperience):
return s return s
def getHTTPClientCmd(self): def getHTTPClientCmd(self):
s = MpExperienceHTTP.WGET_BIN + " http://" + self.mpConfig.getServerIP() + \ s = "time " + MpExperienceHTTP.WGET_BIN + " http://" + self.mpConfig.getServerIP() + \
"/" + self.file + " --no-check-certificate &>" + MpExperienceHTTP.CLIENT_LOG "/" + self.file + " --no-check-certificate &>" + MpExperienceHTTP.CLIENT_LOG
print(s) print(s)
return s return s

View File

@ -55,7 +55,7 @@ class MpExperienceHTTPS(MpExperience):
return s return s
def getHTTPSClientCmd(self): def getHTTPSClientCmd(self):
s = MpExperienceHTTPS.WGET_BIN + " https://" + self.mpConfig.getServerIP() + \ s = "time " +MpExperienceHTTPS.WGET_BIN + " https://" + self.mpConfig.getServerIP() + \
"/" + self.file + " --no-check-certificate &>" + MpExperienceHTTPS.CLIENT_LOG "/" + self.file + " --no-check-certificate &>" + MpExperienceHTTPS.CLIENT_LOG
print(s) print(s)
return s return s