A modern and elegant dashboard for network traffic visualization and analysis.
docs: changelog for the flush cache fix and rate warm-up
luolei49fcdc94bcb9
diff --git a/CHANGELOG.en.md b/CHANGELOG.en.mdindex af8693a..08f76aa 100644--- a/CHANGELOG.en.md+++ b/CHANGELOG.en.md@@ -12,13 +12,17 @@ This release adds a few small features that users have asked for repeatedly.### Added- **Live speed and a speed view** ([#93], thanks @seth-shi for the suggestion)- - The Total Download and Total Upload cards show the current speed, averaged over the last 15 seconds of cumulative totals. It appears only for live time ranges (not custom ranges) and resets when you switch backends, so it never shows negative or absurd values+ - The Total Download and Total Upload cards show the current speed, averaged over the last 15 seconds of cumulative totals. It appears only for live time ranges (not custom ranges). After you switch the time range or backend, it waits until the new totals settle (about 10–15 seconds) before calculating, so it never shows negative or absurd values- The traffic trend chart has a new Traffic / Speed toggle. Speed is the bytes in each time bucket divided by the bucket length. The newest bucket, which is still filling, is not plotted, so the right edge doesn't dip- **Export associated domains** ([#54], thanks @ron159 for the suggestion)- Domain lists in the rule, proxy and device views, and in the IP expand panel, have an export button. It saves the full filtered and sorted list as a txt file with one domain per line, ready to paste into your own rule-set- **`LOG_LEVEL` environment variable** ([#80], thanks @ilupin for the suggestion)- Accepts `error`, `warn`, `info` or `debug` (default `info`) and controls how much the collector process logs. `console.error` is always printed. Output from the container start script and Next.js is not affected+### Fixed++- **Live totals periodically dropped and jumped back** 🐛: after each flush, the realtime deltas in memory are cleared, but query results for persisted data stay cached for a few seconds (8s for DB queries, 2s for live pushes). Until that cache expired, "cached persisted totals + realtime deltas" was missing one flush interval of traffic, so the Total Download/Upload cards dropped every flush and jumped back on the next push. Clearing realtime data on flush now also invalidates both caches, for the mihomo, Surge and agent collection paths+### Agent (shipped as `agent-v1.4.8`)- **GitHub token for upgrades and installs** ([#77], thanks @8MiYile for the suggestion): with `GITHUB_TOKEN` (or `GITHUB_PAT`) set, `nekoagent upgrade` and `install.sh` send the token when they query the GitHub API, so anonymous rate limits no longer block them. The token goes only to `api.github.com`: it is never attached to binary downloads, never saved in instance config and never logged. A 401, 403 or 429 from the API now produces a clear errordiff --git a/CHANGELOG.md b/CHANGELOG.mdindex 4e9b8cc..0a55ac9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,13 +12,17 @@### 新增- **实时网速与网速视图**([#93],感谢 @seth-shi 的建议)- - 总下载、总上传卡片下方显示当前网速,按最近 15 秒的累计流量平均计算。只在实时时间范围(非自定义范围)下显示,切换后端时会清零,不会出现负值或异常大的数值+ - 总下载、总上传卡片下方显示当前网速,按最近 15 秒的累计流量平均计算。只在实时时间范围(非自定义范围)下显示;切换时间范围或后端后,要等新数据稳定才开始计算(约 10–15 秒),不会出现负值或异常大的数值- 流量趋势图新增"流量 / 网速"切换。网速 = 每个时间桶的字节数 ÷ 桶的秒数;还在累积中的最新时间桶不画,避免右端数值偏低- **导出关联域名**([#54],感谢 @ron159 的建议)- 规则、代理、设备详情里的域名列表,以及 IP 展开面板,新增导出按钮。导出内容为当前筛选和排序下的完整列表,保存为 txt,一行一个域名,便于整理进自己的 rule-set- **`LOG_LEVEL` 环境变量**([#80],感谢 @ilupin 的建议)- 可选 `error`、`warn`、`info`、`debug`,默认 `info`,用来控制采集器进程的日志量。`console.error` 永远输出;容器启动脚本和 Next.js 的输出不受影响+### 修复++- **实时视图下总流量每隔一段时间往下跳一次** 🐛:每次落库后,内存里的实时增量会被清空,但已落库部分的查询结果仍有几秒缓存(数据库查询 8 秒、实时推送 2 秒)。缓存过期前,"缓存的已落库总量 + 实时增量"会少掉一个落库周期的流量,总下载/总上传卡片因此周期性回落,下一次推送又跳回来。现在落库清空实时数据时会同时让这两层缓存失效,mihomo、Surge 和 Agent 三条采集路径都已覆盖+### Agent(随 `agent-v1.4.8` 发布)- **升级与安装支持 GitHub token**([#77],感谢 @8MiYile 的建议):设置 `GITHUB_TOKEN`(或 `GITHUB_PAT`)后,`nekoagent upgrade` 和 `install.sh` 查询 GitHub API 时会带上 token,避免匿名调用被限流。token 只用于 `api.github.com`,不会附加到二进制下载请求上,不写入实例配置,也不出现在日志里。API 返回 401、403 或 429 时会给出明确提示