fix(sftp): smooth transfer speed gauge #843

Merged
simon merged 1 commit from fix/sftp-speed-gauge-smoothing into dev 2026-06-30 20:49:25 +00:00
Owner

Summary

  • replace the five-sample transfer speed average with a slower 20-second exponential moving average
  • hold the displayed speed through short polling gaps so the gauge does not snap back to zero between sparse updates
  • keep resetting speed immediately when the transfer leaves the active transferring state

Validation

  • node --experimental-strip-types --test apps/web/lib/host-editor/panel-ui.test.mjs
  • corepack pnpm@10.6.5 -C apps/web type-check

Companion docs PR: carrtech/website docs/sftp-speed-gauge-smoothing

## Summary - replace the five-sample transfer speed average with a slower 20-second exponential moving average - hold the displayed speed through short polling gaps so the gauge does not snap back to zero between sparse updates - keep resetting speed immediately when the transfer leaves the active transferring state ## Validation - node --experimental-strip-types --test apps/web/lib/host-editor/panel-ui.test.mjs - corepack pnpm@10.6.5 -C apps/web type-check Companion docs PR: carrtech/website docs/sftp-speed-gauge-smoothing
fix(sftp): smooth transfer speed gauge
All checks were successful
Conventional PR title / Conventional PR title (pull_request) Successful in 0s
PR Checks (Docker images) / Ansible API contract (pull_request) Successful in 6s
PR Checks (Docker images) / Detect Docker image changes (pull_request) Successful in 8s
SAST / Detect security scan scope (pull_request) Successful in 9s
PR Checks (Docker images) / Ansible API Docker image (pull_request) Has been skipped
SAST / gosec (agent) (pull_request) Has been skipped
PR Checks (Docker images) / Ingest Docker image (pull_request) Has been skipped
SAST / gosec (ingest) (pull_request) Has been skipped
SAST / trivy (filesystem) (pull_request) Has been skipped
Secret Scan / gitleaks (pull_request) Successful in 27s
SAST / trivy (config / IaC) (pull_request) Has been skipped
SAST / semgrep (pull_request) Successful in 1m12s
SAST / crypto-lint (no weak hashes / ciphers) (pull_request) Successful in 1m6s
PR Checks (Web) / Web (lint / type-check / build) (pull_request) Successful in 2m34s
PR Checks (Docker images) / Web Docker image (pull_request) Successful in 12m37s
10c5789811
simon deleted branch fix/sftp-speed-gauge-smoothing 2026-06-30 20:49:25 +00:00
simon referenced this pull request from a commit 2026-06-30 20:49:26 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carrtech/ct-ops!843
No description provided.