Skip to content

Network traffic: add graph reset behavior #806

Description

@johnny9

Split from #611

This reset work was split out of #611 so it can be implemented and reviewed independently from the network traffic sampling lifecycle, hidden-update, range-preservation, and shutdown hardening covered there.

Code Gap

The QML network traffic page does not provide reset behavior equivalent to the Qt traffic graph.

Reset applies to the graph's sampling history, not the node's cumulative network totals. The Qt behavior clears the incoming/outgoing history and peak scale, rebases the previous received/sent counters to the node's current totals, and continues sampling without producing a spike from lifetime traffic.

Work Needed

  • Add a reset action to the QML network traffic page.
  • Clear received/sent graph history and the derived peak/scale state.
  • Rebase graph sampling to the node's current received/sent totals.
  • Keep the cumulative received and sent totals unchanged.
  • Preserve the selected time range across reset.
  • Add coverage for reset while sampling is active and reset after changing the time range.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    Status
    Open

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions