mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 10:57:03 +02:00
Fixed #1296 formatting numbers on the admin health page
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -291,6 +291,11 @@ function my_qp_encode($s){
|
||||
}
|
||||
|
||||
|
||||
function format_number($n) {
|
||||
return number_format($n, 0, DECIMAL_SEPARATOR, THOUSANDS_SEPARATOR);
|
||||
}
|
||||
|
||||
|
||||
function nice_size($size = 0, $space = '') {
|
||||
if($size < 1000) return "1k";
|
||||
if($size < 1000000) return round($size/1000) . $space . "k";
|
||||
|
Reference in New Issue
Block a user