Correct the median and 12+ fps share in session reports #70

Manually merged
github merged 1 commit from gh-pr/70/head into gh-pr/70/base 2026-11-26 11:31:54 +00:00
Owner

@⁠HandshakeHackin on GitHub · 2026-11-26 11:06 UTC · original
HandshakeHackin:fix/fps-session-statistics → main · +41 −2 · 2 files · 1 commits · merged 2026-11-26 11:09 UTC

Two inputs to the standard-drive report exposed arithmetic errors. With one sample at 10 fps and one at 20 fps, the JSON and shared line reported a median of 20 fps. The median is 15. With one sample each at 12, 15 and 18 fps, the shared line reported 99% at 12+ fps even though every sample qualified.

The report now averages the two middle samples for even counts and computes the combined percentage directly from qualifying samples before rounding. Run python tools/test_fps_session.py to check the JSON and shareable output on four synthetic sessions. The checks pass locally.

**@⁠HandshakeHackin** on GitHub · 2026-11-26 11:06 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/70) `HandshakeHackin:fix/fps-session-statistics` → `main` · +41 −2 · 2 files · 1 commits · merged 2026-11-26 11:09 UTC Two inputs to the standard-drive report exposed arithmetic errors. With one sample at 10 fps and one at 20 fps, the JSON and shared line reported a median of 20 fps. The median is 15. With one sample each at 12, 15 and 18 fps, the shared line reported 99% at 12+ fps even though every sample qualified. The report now averages the two middle samples for even counts and computes the combined percentage directly from qualifying samples before rounding. Run `python tools/test_fps_session.py` to check the JSON and shareable output on four synthetic sessions. The checks pass locally.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:31:50 +00:00
github manually merged commit 550f188d11 into gh-pr/70/base 2026-11-26 11:31:54 +00:00
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 11:08 UTC · original

Good catch, a wrong median in the shared line would have been embarrassing. We will run the synthetic sessions here and take it in.

**@⁠PastiiJay** on GitHub · 2026-11-26 11:08 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/70#issuecomment-7190330430) Good catch, a wrong median in the shared line would have been embarrassing. We will run the synthetic sessions here and take it in.
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 11:34 UTC · original

Merged into main, the shared line adds up properly now.

**@⁠PastiiJay** on GitHub · 2026-11-26 11:34 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/70#issuecomment-7190892938) Merged into main, the shared line adds up properly now.
This discussion has been locked. Commenting is limited to contributors.
No description provided.