mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-28 11:41:19 +00:00
- abbreviation for kilo bytes is kB not KB
This commit is contained in:
parent
604fcb61e0
commit
a9851eed00
|
|
@ -52,7 +52,7 @@ class LetoDMS_Core_File {
|
|||
return $filesize;
|
||||
}
|
||||
|
||||
function format_filesize($size, $sizes = array('Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB')) {
|
||||
function format_filesize($size, $sizes = array('Bytes', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB')) {
|
||||
if ($size == 0) return('n/a');
|
||||
return (round($size/pow(1024, ($i = floor(log($size, 1024)))), 2) . ' ' . $sizes[$i]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user