[BlueOnyx:23913] Re: 5210R -> error in http://servername:444/disk/serverDiskUsage?serverDiskUsage=1

Michael Stauber mstauber at blueonyx.it
Fri May 29 11:03:37 -05 2020


Hi Dirk,

> on 5210R we do see the following error while looking for Server
> Management -> Statistiken -> Platte (with german language settings).
> 
> (I do not see the issue with english languagae settings)
Thank you! I just published an updated base-disk, which fixes this error
- and a similar one in groupDiskUsage.php.

It affected only some languages due to the different decimal point in
various languages:

$percentage = round(100 * '20.80' / '30.00');
$percentage = round(100 * '20,80' / '30,00');

Either of the above worked on PHP-5.4 w/o any errors. In PHP-7.2 it
chokes on the ','. The fun part: The decimal point it chokes on was
added via sprintf() to format the numbers according to the language set
by the user! :p

Either way: It's fixed now and YUM updates have been published. Many
thanks for reporting this.

-- 
With best regards

Michael Stauber


More information about the Blueonyx mailing list