Skip to content

fix!: 区分真实零值与不可用的资源读数 - #83

Open
hayxe1 wants to merge 3 commits into
Ray-lea:mainfrom
hayxe1:fix/measurement-availability
Open

hayxe1 wants to merge 3 commits into
Ray-lea:mainfrom
hayxe1:fix/measurement-availability

Conversation

@hayxe1

@hayxe1 hayxe1 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

改动内容 / Changes

磁盘、GPU、系统网络、进程 I/O 与进程网络分别保存可用性、有效样本数和已知缺失原因。真实零值继续显示为零;不可用、访问被拒、过期/重复、等待基线与部分总量分别呈现,平均值仅使用有效样本。实时表格、概况与历史使用一致的读数规则。

Preserves independent source coverage in history and live resource totals. A valid zero remains zero; missing or repeated readings do not dilute an average or masquerade as idle activity. Partial device totals and legacy unknown coverage remain explicit. Source reasons are reported only when actually known.

依赖 / Dependency

Depends on #76 for recorded instance identity and actual CPU-frame addressing. Those prerequisite changes are included so this branch builds against current main. Merge #76 first; this branch then needs its prerequisite commits removed/rebased before merge.

Focused availability-only diff: history prerequisite → availability. This PR does not include #77's process-action/protocol change or observation/interval/report features.

Compatibility / 兼容性

BREAKING CHANGE: New history writes use separate <date>.v5.hist files. Readers retain v2–v5 support, preserve old files and prefer newer-format overlapping frames. Legacy identity and availability remain unknown; they are never inferred from a numeric zero. Older versions cannot read v5, so keep a backup before downgrading. Product versions are unchanged.

验证 / Validation

  • Extracted branch: 20 core history tests passed, including zero/missing/partial/stale, baseline recovery, pending processes, legacy formats, torn tails, UTC midnight, clock reversal and version-overlap deduplication.
  • Workspace/all-targets Clippy, changed Rust formatting, generated dispatch and all eight locale catalogs passed.
  • Development EXE built; native-window fixtures checked measured zero, denied/stale/mixed/legacy coverage, live totals, source failure/recovery, both themes and small windows at 150%, with no foreground activation.
  • The integrated feature set previously passed the full project check. A new full check of this extracted branch is left to CI; targeted validation above applies to this exact branch.
  • Release CPU/GPU/memory/frame-rate A/B, physical USB/RAID failure cases and clean-VM installed-service checks were not performed. Existing RAID query restrictions and USB handle lifetime fixes are preserved.

检查清单 / Checklist

  • Conventional Commits; behavior documentation and eight-locale UI text.
  • Full start.bat check for this extracted branch; targeted checks listed above.
  • Public screenshot attachments and comparable release performance baseline. Reproducible native fixtures are included.

BREAKING CHANGE: New daily history files use version 3 to retain process creation times. Version 2 files remain readable and continue in their original format for the current day. Older builds cannot read version 3 recordings. Back up history before downgrading.
分别记录零值、来源不可用、过期、基线与部分读数;聚合仅使用有效样本。保留上游采集、RAID/USB 与会话处理。

BREAKING CHANGE: 新历史写入独立的 .v5.hist 文件。保留 v2–v5 读取和旧文件,旧版程序不能读取 v5 数据。
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-12T19:51:03.748505Z
We couldn’t complete this review. Comment @codex review to try again.
1054ba2 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

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