Skip to content

The CPU graph starts blank and fills from the left over 60 samples #380

Closed

Description

@Seb-GRAF

Problem

After launch, the system widget's graph is empty and its value reads 0%, because the first CPU sample is a zero delta. Samples are drawn at fixed slots across 60 positions, so the history grows from the left edge and the rest of the graph stays blank. At a 10-second interval, the graph takes 10 minutes to fill. In the meantime the widget looks broken: a wide blank area beside "0%", then a single tick at the left edge.

Proposal

  • Report a real first CPU value instead of 0%.
  • Draw the graph right-aligned, so the newest sample sits at the right edge and the history grows leftward, as Activity Monitor and iStat do.

Possible today

No. docs/providers.md documents the zero first sample. The graph's layout can't change.

Related

  • Sparkline in Sources/StableBar/BarView.swift places sample i at width * i / 59. ScriptWidget.swift:270 keeps the last 60 samples.

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 29, 2026
  2. stablebar-releases commented on Nov 2, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.10.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions