mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
1. 优化部分站点做种体积获取,减少网站访问次数
2. 支持oldtoons,reelflix
This commit is contained in:
@@ -7,7 +7,7 @@ function renderSize(value) {
|
||||
var srcsize = parseFloat(value);
|
||||
index = Math.floor(Math.log(srcsize) / Math.log(1024));
|
||||
var size = srcsize / Math.pow(1024, index);
|
||||
size = size.toFixed(2);//保留的小数位数
|
||||
size = size.toFixed(3);//保留的小数位数
|
||||
return size + ' ' + unitArr[index];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user