From 35420f48f23ea9c5765590721f0286feca821046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Wed, 2 Oct 2019 19:39:43 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"fix=20for=20"available=20=E2=89=A0?= =?UTF-8?q?=C2=A0total"=20error=20in=20#2989"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/web/debug.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/web/debug.php b/data/web/debug.php index f379d869..03752d34 100644 --- a/data/web/debug.php +++ b/data/web/debug.php @@ -45,8 +45,8 @@ else { $vmail_df = explode(',', json_decode(docker('post', 'dovecot-mailcow', 'exec', $exec_fields), true)); $used_percent = substr($vmail_df[4], 0, -1); $quota_stats = mailbox('get','quota_stats'); - $quotaPercent1 = round(($quota_stats['total_quota']/$vmail_df[1])*100); - $quotaPercent2 = round((($quota_stats['total_quota']-$quota_stats['used_bytes'])/$vmail_df[1])*100); + $quotaPercent1 = round(($quota_stats['total_quota']/$vmail_df[3])*100); + $quotaPercent2 = round((($quota_stats['total_quota']-$quota_stats['used_bytes'])/$vmail_df[3])*100); $quotaPercent2 = ($quotaPercent2+$used_percent>100) ? 100-$used_percent : $quotaPercent2; ?>
@@ -58,7 +58,7 @@ else {

/var/vmail on

-

+