增加统计项目
This commit is contained in:
1 parent
98e15deeac
commit
0b926d92fc
21 files changed
+686
-167
No files matched your search
@@ -1,4 +1,8 @@
|
||||
<?php
|
||||
|
||||
|
||||
function format_bytes($size, $delimiter = '') {
|
||||
$units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB');
|
||||
for ($i = 0; $size >= 1024 && $i < 5; $i++) $size /= 1024;
|
||||
return round($size, 2) . $delimiter . $units[$i];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user