users: fix quota parsing being wrong by a factor 1000 ... doveadm returns kilos, not bytes

This commit is contained in:
Alexandre Aubin 2023-03-31 20:45:14 +02:00
parent 4b46f32201
commit 821aedefa7

View file

@ -631,7 +631,7 @@ def user_info(username):
has_value = re.search(r"Value=(\d+)", cmd_result)
if has_value:
storage_use = int(has_value.group(1))
storage_use = int(has_value.group(1)) * 1000
storage_use = binary_to_human(storage_use)
if is_limited: