Fix regression where duration not reported as min

This commit is contained in:
JonnyWong16 2016-02-03 09:32:32 -08:00
parent eeb351e991
commit 0b301fff3f
2 changed files with 9 additions and 9 deletions

View file

@ -378,14 +378,14 @@ def create_https_certificates(ssl_cert, ssl_key):
def cast_to_int(s):
try:
return int(s)
except ValueError:
return -1
except (ValueError, TypeError):
return 0
def cast_to_float(s):
try:
return float(s)
except ValueError:
return -1
except (ValueError, TypeError):
return 0
def convert_xml_to_json(xml):
o = xmltodict.parse(xml)