Correzione unita' di misura
This commit is contained in:
@@ -482,7 +482,7 @@ function byteConvert($bytes) {
|
||||
|
||||
if ($bytes == 0) return "0 B";
|
||||
|
||||
$s = array('B', 'Kb', 'MB', 'GB', 'TB', 'PB');
|
||||
$s = array('B', 'KB', 'MB', 'GB', 'TB', 'PB');
|
||||
$e = floor(log($bytes)/log(1024));
|
||||
|
||||
return sprintf('%.2f '.$s[$e], ($bytes/pow(1024, $e)));
|
||||
|
||||
Reference in New Issue
Block a user