Fix offset sub-second precision bug (#642)
This commit is contained in:
parent
14c82a6d82
commit
7850c2a00d
@ -83,6 +83,8 @@ def retry(ExceptionToCheck, tries=4, delay=3, backoff=2, logger=None):
|
|||||||
|
|
||||||
|
|
||||||
def parseTime(timeStr):
|
def parseTime(timeStr):
|
||||||
|
if ":" not in timeStr:
|
||||||
|
return float(timeStr)
|
||||||
regex = re.compile(constants.PARSE_TIME_REGEX)
|
regex = re.compile(constants.PARSE_TIME_REGEX)
|
||||||
parts = regex.match(timeStr)
|
parts = regex.match(timeStr)
|
||||||
if not parts:
|
if not parts:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user