Merge "Division result is wrapped to int()."

This commit is contained in:
Jenkins 2015-10-28 09:17:39 +00:00 committed by Gerrit Code Review
commit ed191d5265

View File

@ -184,7 +184,7 @@ def validate_long_type_length(cls, field_name, value):
if (size_limit_kb < 0):
return
size_kb = sys.getsizeof(str(value)) / 1024
size_kb = int(sys.getsizeof(str(value)) / 1024)
if size_kb > size_limit_kb:
LOG.error(