模块管理器

This commit is contained in:
undefined committed 2020-05-05 12:07:34 +08:00
1 parent 04941936bc
commit 3e9b074e77
22 files changed
+191 -59

No files matched your search

+1 -1
View File
@@ -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'];