MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getSpeedEmoji

Function getSpeedEmoji

subinfo/subinfo.ts:124–129  ·  view source on GitHub ↗
(percent: number)

Source from the content-addressed store, hash-verified

122 return "🔴 警告";
123}
124
125// 预计耗尽日期
126function estimateDepletionDate(remain: number, dailyUsage: number): string {
127 if (dailyUsage <= 0) return "无法估计";
128 const days = Math.floor(remain / dailyUsage);
129 return dayjs().add(days, 'day').format("YYYY-MM-DD");
130}
131
132// 尝试解析节点信息 (节点数, 类型, 地区分布, 节点名称列表)

Callers 1

handleSubinfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected