Skip to content

修复客户平均算力展示并验证旧库历史恢复 - #22

Merged
raphael2025 merged 2 commits into
mainfrom
codex/customer-rate-status-20261102
Nov 2, 2026
Merged

raphael2025 merged 2 commits into
mainfrom
codex/customer-rate-status-20261102

Conversation

@raphael2025

@raphael2025 raphael2025 commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

为什么需要修改

客户平均值已经计算出来时,页面仍会因有效覆盖不足 24 小时把主数值显示为横线,只在小字中显示已观测平均,容易被理解为计算失败。升级后的场地端是否能直接复用已有历史,也需要明确验证。

修改与结果

  • 单场地部分覆盖的平均值直接显示在主数值中,同时常显“按有效时段计算”和有效覆盖时长;API 完整性标记及计算口径保持原意。
  • 区分未上报、缺读数和过期状态;尊重云端明确返回的未知时间,避免未来时间戳被显示为“0 秒前”。
  • 保留真实零值、未知值和跨场地部分覆盖的汇总保护。
  • 六种语言同步更新;文档说明更新后必须重启本地进程,以及保留的原始扫描历史可以立即参与重算。
  • 增加真实旧文件数据库自动迁移、非整点滚动 24 小时及不等扫描间隔回归,不修改算力公式。

验证

  • Linux 全量:443 passed,28 subtests passed。
  • 共享前端 Node 行为回归通过:23.26/24h、6/24h、1/24h、真实零值、未知值、混合周期、跨场地缺报、过期与未知时间并存、六语言占位符。
  • 旧库恢复与边界测试确认已有原始历史可立即得到 293 TH/s、24h、100% 覆盖,无需一律等待新的 24 小时。
  • 真实本地 HTTP 服务三阶段演练通过:旧报文 → 新摘要 → 新客户报表;通过 HTTP 获取实际页面脚本并执行渲染断言,验证提示消失、实时/平均恢复、23.26/24h 部分均值及跨场地保护(Node VM 元素桩,非浏览器)。
  • 独立代码复核通过;最终提交 Windows 原生检查 7/7 全部通过(Python 3.8/3.10/3.12/3.14,3.15 环境恢复、无 Python 启动、Git 锁定及 ZIP 恢复)。
    运行记录:https://github.com/raphael2025/antmonitor/actions/runs/41397732849
  • 测试环境缺少 Chromium 且官方下载被环境拦截,因此未把 页面脚本/接口检查计作浏览器视觉验收;未访问生产场地。

关联修复:raphael2025/antmonitor-cloud#8

补充:仓库的 Cursor Bugbot 因使用额度未能运行;本次已完成独立代码复核及上述回归测试。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T06:04:16.931591Z c8defb7 PR opened
🔒 Security Review ✅ Completed 2026-11-02T06:06:06.333825Z c8defb7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cursor

cursor Bot commented Nov 2, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 3a126ce4-1bf8-4e37-be34-e9b7b87e6b3c)

@cursor

cursor Bot commented Nov 2, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 2b13fb31-48cd-416b-aac3-5fa35f22e63b)

@raphael2025
raphael2025 merged commit fe41621 into main Nov 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant