Use long as possible timestamp value

long, as type, is also possible to be a timestamp
format

Needed-By: I2f9d22a2c5e18826c8f9bb1e817ad963731b390f
Change-Id: I186abe4cdafd58d998f8aaf36d866795771a9e0a
This commit is contained in:
Tomasz Trębski 2017-02-15 06:57:28 +01:00
parent 80d93fcad4
commit 9cbcfed83f
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)