Exemplo n.º 1
0
 def getGlobalResponseTime(self):
     try:
         if self.globalresponsetime>0:
             res=self.globalresponsetime
         else:
             res=float(self.fields[6].split(":")[1].strip())
         return  float(res)
     except:
         Configuration.getLogger().info("getGlobalResponseTime"+self.text)
         return 20000
Exemplo n.º 2
0
 def getSPCResponseTime(self):
     try:
         res=self.fields[7]
         if self.fields[7].find('*')<>-1:
             res=self.fields[7].split('*')[0]
         res=float(res.split(":")[1].strip())
 
         return res
     except:
         Configuration.getLogger().info("getSPCResponseTime"+self.text)
         return 20000