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:
parent
80d93fcad4
commit
9cbcfed83f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user