mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
users: fix quota parsing being wrong by a factor 1000 ... doveadm returns kilos, not bytes
This commit is contained in:
parent
4b46f32201
commit
821aedefa7
1 changed files with 1 additions and 1 deletions
|
@ -631,7 +631,7 @@ def user_info(username):
|
||||||
has_value = re.search(r"Value=(\d+)", cmd_result)
|
has_value = re.search(r"Value=(\d+)", cmd_result)
|
||||||
|
|
||||||
if has_value:
|
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)
|
storage_use = binary_to_human(storage_use)
|
||||||
|
|
||||||
if is_limited:
|
if is_limited:
|
||||||
|
|
Loading…
Add table
Reference in a new issue