Python3 fix.
This commit is contained in:
Awais Qureshi
2019-09-24 14:22:45 +05:00
parent a51c362561
commit 984063c819

View File

@@ -114,7 +114,7 @@ def truncate_fields(old_value, new_value):
"""
# Compute the maximum value length so that two copies can fit into the maximum event size
# in addition to all the other fields recorded.
max_value_length = settings.TRACK_MAX_EVENT / 4
max_value_length = settings.TRACK_MAX_EVENT // 4
serialized_old_value, old_was_truncated = _get_truncated_setting_value(old_value, max_length=max_value_length)
serialized_new_value, new_was_truncated = _get_truncated_setting_value(new_value, max_length=max_value_length)