mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 14:41:50 +01:00
change quota percentage calculation
This commit is contained in:
parent
35167898cd
commit
78855fa7b7
@ -4919,6 +4919,16 @@ class mail_bo
|
|||||||
{
|
{
|
||||||
$bytes /= 1024;
|
$bytes /= 1024;
|
||||||
$type = 'M';
|
$type = 'M';
|
||||||
|
|
||||||
|
if ($bytes / 1024 > 1)
|
||||||
|
{
|
||||||
|
$bytes *= 10;
|
||||||
|
settype($bytes, 'integer');
|
||||||
|
$bytes /= 10;
|
||||||
|
$bytes /= 1024;
|
||||||
|
$type = 'G';
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($bytes < 10)
|
if ($bytes < 10)
|
||||||
|
@ -2065,7 +2065,7 @@ unset($query['actions']);
|
|||||||
}
|
}
|
||||||
$quota['class'] = $quotaBG;
|
$quota['class'] = $quotaBG;
|
||||||
$quota['text'] = $quotaText;
|
$quota['text'] = $quotaText;
|
||||||
$quota['percent'] = (string)($_usage/$_limit*100);
|
$quota['percent'] = (string)round(($_usage*100)/$_limit);//($_usage/$_limit*100);
|
||||||
return $quota;
|
return $quota;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user