mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 18:13:58 +00:00
events: Fix realm_upload_quota_mib value to be in MiB.
This was bytes until now.
This commit is contained in:
committed by
Tim Abbott
parent
3df46d542b
commit
540d419ef7
@@ -33,3 +33,10 @@ def process_list_in_batches(
|
||||
break
|
||||
process_batch(items)
|
||||
offset += chunk_size
|
||||
|
||||
|
||||
def optional_bytes_to_mib(value: Optional[int]) -> Optional[int]:
|
||||
if value is None:
|
||||
return None
|
||||
else:
|
||||
return value >> 20
|
||||
|
||||
Reference in New Issue
Block a user