Skip to content

Commit 35f945d

Browse files
committed
v1.3.5
fix: align usage percentage and tray icon numbers
1 parent 17c6351 commit 35f945d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "claude-code-usage-monitor"
3-
version = "1.3.4"
3+
version = "1.3.5"
44
edition = "2021"
55
license = "MIT"
66
description = "Claude Code Usage Monitor"

src/tray_icon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub fn create_icon(percent: Option<f64>) -> HICON {
7979
let text_col = Color::from_hex("#FFFFFF");
8080

8181
let display_text = match percent {
82-
Some(p) => format!("{}", p as u32),
82+
Some(p) => format!("{}", p.round().clamp(0.0, 999.0) as u32),
8383
None => String::new(),
8484
};
8585

0 commit comments

Comments
 (0)