v0.2.3 — Fix Sparkline Delay & Panel Flickering
dgxtop v0.2.3 — Fix Sparkline Delay & Panel Flickering
Bug Fixes
Sparkline showing stale data (~4 min delay)
- Root cause: ratatui
Sparklinerenders fromdata[0], not the end. With 300-sample buffer and ~70-char width, it displayed samples from 4+ minutes ago, ignoring the latest values. - Fix:
to_sparkline_data(width)now takes only the most recent N points matching the widget width. CPU/Memory sparklines update instantly.
Disk I/O and Network panels flickering
- Root cause: Sort by instantaneous throughput was unstable — devices with similar throughput swapped positions every tick.
selected_indexpointed at a position, not a device, so chart/stats jumped between devices. - Fix: Added device name as tie-breaker in sort for both disk and network.
update_disks()andupdate_networks()now preserve the selected device by name across re-sorts.
Install
curl -fsSL https://raw.githubusercontent.com/DennySORA/dgxtop/main/install.sh | bashFull Changelog: v0.2.2...v0.2.3
Full Changelog: v0.2.2...v0.2.3