froxlor / Froxlor

The server administration software for your needs - The official Froxlor development Git repository
http://www.froxlor.org
GNU General Public License v2.0
1.63k stars 458 forks source link

Falsche Einheit beim Kunden-Dashboard E-Mail-Kontingent #1207

Closed stdaube closed 10 months ago

stdaube commented 10 months ago

Anstelle GB wird MB angezeigt.

In der Datenbank wird der Mailspace in MB angegeben und beim Diskspace in KB, trotzdem werden in der customer_index.php alle werde nur mal 1024 gerechnet.

Muß deshalb nicht wie folgt gerechnet werden (zumindest stimmt dann die Anzeige)

        if (Settings::Get('system.mail_quota_enabled')) {
                $userinfo['email_quota_bytes'] = ($userinfo['email_quota'] > -1) ? $userinfo['email_quota'] * 1048576 : -1;
                $userinfo['email_quota_bytes_used'] = $userinfo['email_quota_used'] * 1048576;
        }