mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
模块管理器
This commit is contained in:
1 parent
04941936bc
commit
3e9b074e77
22 files changed
+191
-59
No files matched your search
+1
-1
@@ -36,7 +36,7 @@ exports.paginate = function* paginate(page, numPages) {
|
||||
yield ['last', numPages];
|
||||
};
|
||||
|
||||
exports.format_size = function formatSize(size, base = 1) {
|
||||
exports.size = function formatSize(size, base = 1) {
|
||||
size *= base;
|
||||
const unit = 1024;
|
||||
const unitNames = ['Bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];
|
||||
|
||||
Reference in new issue
Block a user