Hi Roland, yes this works also.
-- Mit freundlichen Grüßen ##------------ IT Physik / Georg August Universitaet Goettingen --------- ## Tel:+49 551 3929363 http://www.theorie.physik.uni-goettingen.de/jh.html ## ## Rechtschreibfehler sind Absicht und dienen der allgemeinen Belustigung. ##-------------- Verschtehen Sie, Isch habe garrr kein Wooerd! ----------- On Fri, 2020-06-12 at 09:46 +0200, Roland Gruber wrote: > 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Lam-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lam-public
