Hi Jürgen,

can you try this file?

https://raw.githubusercontent.com/LDAPAccountManager/lam/69796a98f38b45c9e67f67b7326e066534d9c4a5/lam/lib/modules/quota.inc

There was an issue when the number did not match full mebibytes (e.g. 1025).


Best regards

Roland


Am 12.06.20 um 09:04 schrieb Juergen Holm:
> Hi,
>
> my be it's better to use something like this:
>
>                 if (($value >= $tebibytes) ) {
>                   if (($value % $tebibytes) === 0)
>                     return ($value / $tebibytes) . 'T';
>                   else
>                     return (int)($value / $gibibytes) . 'G';
>                 }   
>                 if (($value >= $gibibytes) ) {
>                   if (($value % $gibibytes) === 0)
>                     return ($value / $gibibytes) . 'G';
>                   else
>                     return (int)($value / $mebibytes) . 'M';
>                 }   
>                 if (($value >= $mebibytes) ) {
>                   if (($value % $mebibytes) === 0)
>                     return ($value / $mebibytes) . 'M';
>                   else
>                     return $value;
>                 }   
>
>
>
> _______________________________________________
> Lam-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lam-public
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public

Reply via email to