fix: align usage percentage and tray icon numbers
This commit is contained in:
Craig Constable 2026-04-20 09:18:01 +10:00
parent 17c63517ca
commit 35f945daa9
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -38,7 +38,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "claude-code-usage-monitor"
version = "1.3.4"
version = "1.3.5"
dependencies = [
"dirs",
"native-tls",

View File

@ -1,6 +1,6 @@
[package]
name = "claude-code-usage-monitor"
version = "1.3.4"
version = "1.3.5"
edition = "2021"
license = "MIT"
description = "Claude Code Usage Monitor"

View File

@ -79,7 +79,7 @@ pub fn create_icon(percent: Option<f64>) -> HICON {
let text_col = Color::from_hex("#FFFFFF");
let display_text = match percent {
Some(p) => format!("{}", p as u32),
Some(p) => format!("{}", p.round().clamp(0.0, 999.0) as u32),
None => String::new(),
};