mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 08:52:43 +08:00
fix: 优化Usage最大值计算逻辑,确保正确处理CF配置中的最大使用量
This commit is contained in:
@@ -207,7 +207,7 @@ export default {
|
||||
if (config_JSON.CF.Usage.success) {
|
||||
pagesSum = config_JSON.CF.Usage.pages;
|
||||
workersSum = config_JSON.CF.Usage.workers;
|
||||
total = 1024 * 100;
|
||||
total = Number.isFinite(config_JSON.CF.Usage.max) ? (config_JSON.CF.Usage.max / 1000) * 1024 : 1024 * 100;
|
||||
}
|
||||
const responseHeaders = {
|
||||
"content-type": "text/plain; charset=utf-8",
|
||||
|
||||
Reference in New Issue
Block a user