Skip to content

Commit 2acf87e

Browse files
authored
Add real-time TUI charts and sparklines (#10)
* Add real-time TUI charts and enhanced simulation - Sparklines in main table showing throughput history - Expandable detail view with full line charts (throughput/packets/errors) - Sophisticated traffic simulation with realistic HPC patterns - Ring buffer storage for historical metrics - Auto-scaling units (GB/s, MB/s, KB/s) - Keyboard navigation (j/k, Enter, Tab) - Pulsing status indicators for active ports * Fix formatting * add totals to header, sparkline padding, bump to v1.0.0 * fix clippy lints in tests
1 parent 83fbfa1 commit 2acf87e

9 files changed

Lines changed: 1853 additions & 286 deletions

File tree

Cargo.lock

Lines changed: 185 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ibtop"
3-
version = "0.1.7"
3+
version = "1.0.0"
44
edition = "2021"
55
authors = ["info@jannik-straube.de"]
66
description = "Real-time terminal monitor for InfiniBand networks"
@@ -12,12 +12,15 @@ keywords = ["infiniband", "monitoring", "tui", "network", "rdma"]
1212
categories = ["command-line-utilities", "network-programming"]
1313

1414
[dependencies]
15-
ratatui = "0.26"
16-
crossterm = "0.27"
15+
ratatui = "0.29"
16+
crossterm = "0.28"
1717
rand = "0.9.2"
1818
serde = { version = "1.0", features = ["derive"] }
1919
serde_json = "1.0"
2020
hostname = "0.4"
2121

22+
[dev-dependencies]
23+
tempfile = "3.14"
24+
2225
[lints.clippy]
2326
pedantic = "deny"

src/discovery/fake.rs

Lines changed: 0 additions & 84 deletions
This file was deleted.

src/discovery/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
pub(crate) mod fake;
2-
31
use crate::types::{AdapterInfo, PortCounters, PortInfo, PortState};
42

53
const MLX5_DATA_MULTIPLIER: u64 = 4; // mlx5 reports in 32-bit words

0 commit comments

Comments
 (0)