fix usage info
This commit is contained in:
@@ -34,7 +34,7 @@ if ($page == 'customers' && $userinfo['customers'] != '0') {
|
||||
|
||||
try {
|
||||
$customer_list_data = include_once dirname(__FILE__) . '/lib/tablelisting/admin/tablelisting.customers.php';
|
||||
$collection = (new \Froxlor\UI\Collection(\Froxlor\Api\Commands\Customers::class, $userinfo))
|
||||
$collection = (new \Froxlor\UI\Collection(\Froxlor\Api\Commands\Customers::class, $userinfo, ['show_usages' => true]))
|
||||
->has('admin', \Froxlor\Api\Commands\Admins::class, 'adminid', 'adminid')
|
||||
->withPagination($customer_list_data['customer_list']['columns']);
|
||||
} catch (Exception $e) {
|
||||
|
||||
@@ -33,9 +33,9 @@ class ProgressBar
|
||||
{
|
||||
$infotext = null;
|
||||
if (isset($attributes['fields']['webspace_used']) && isset($attributes['fields']['mailspace_used']) && isset($attributes['fields']['dbspace_used'])) {
|
||||
$infotext = UI::getLng('panel.used') . ':<br>';
|
||||
$infotext .= 'web: ' . PhpHelper::sizeReadable($attributes['fields']['webspace_used'] * 1024, null, 'bi') . '<br>';
|
||||
$infotext .= 'mail: ' . PhpHelper::sizeReadable($attributes['fields']['mailspace_used'] * 1024, null, 'bi') . '<br>';
|
||||
$infotext = UI::getLng('panel.used') . ':' . PHP_EOL;
|
||||
$infotext .= 'web: ' . PhpHelper::sizeReadable($attributes['fields']['webspace_used'] * 1024, null, 'bi') . PHP_EOL;
|
||||
$infotext .= 'mail: ' . PhpHelper::sizeReadable($attributes['fields']['mailspace_used'] * 1024, null, 'bi') . PHP_EOL;
|
||||
$infotext .= 'mysql: ' . PhpHelper::sizeReadable($attributes['fields']['dbspace_used'] * 1024, null, 'bi');
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ class ProgressBar
|
||||
*/
|
||||
public static function traffic(array $attributes): array
|
||||
{
|
||||
return self::pbData('traffic', $attributes['fields'], 1024 * 1024, (int)Settings::Get('system.report_trafficmax'));
|
||||
return self::pbData('traffic', $attributes['fields'], 1024, (int)Settings::Get('system.report_trafficmax'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user