Hi Roland,

nice solution! 
I would prefer round($value.. ,2) which lead to a maximum  of
inaccuracy of 0.5%. This avoids numbers like 123.456 and 
is more user friendly to read because it also looks like an amount of
money. 
-- 
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 Sun, 2020-06-14 at 21:26 +0200, Roland Gruber wrote:
> Hi Jürgen,
> 
> the used blocks+inodes are now formatted with an extra function.
> 
> https://raw.githubusercontent.com/LDAPAccountManager/lam/develop/lam/lib/modules/quota.inc
> 
> This keeps the values that are editable and shows a more readable
> usage value.
> 
> 
> Best regards
> 
> Roland
> 
> 
> Am 14.06.20 um 17:09 schrieb Roland Gruber:
> > Hi Jürgen,
> > 
> > you are fully right, now I got your point. I will come up with some
> > rounding for the usage numbers.
> > 
> > Best regards
> > 
> > Roland
> > 
> > 
> > 
> > Am 14.06.20 um 08:50 schrieb Juergen Holm:
> > > Hi Roland,
> > > 
> > > I also prefer numbers dividable by 1024 for hard/soft limits. But
> > > the
> > > chance that current block usage is dividable by 1024 is nearly 0.
> > > 
> > > So, the main reason for my proposal is a readable block usage
> > > number.
> > >   $singleQuota[1] = $this->addBlockUnits($singleQuota[1]);
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > 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
> > 
> 
> _______________________________________________
> Lam-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lam-public

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public

Reply via email to