Merge "Use long as possible timestamp value"

This commit is contained in:
Jenkins 2017-02-16 02:54:28 +00:00 committed by Gerrit Code Review
commit f3ca3b2005
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ def validate_value(value):
def validate_timestamp(timestamp):
if not isinstance(timestamp, (int, float)):
if not isinstance(timestamp, (int, long, float)):
msg = "invalid timestamp type: {0} is not a number type for " \
"metric".format(timestamp)
raise InvalidTimeStamp(msg)