From 5a41021188b97e0529356fa33ec07d66f3082d4c Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Tue, 29 Jul 2025 12:02:41 -0300 Subject: [PATCH] feat: Add units to read_rate and read_time meta plugins Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) --- src/meta_plugin/digest.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/meta_plugin/digest.rs b/src/meta_plugin/digest.rs index e54ab65..d684209 100644 --- a/src/meta_plugin/digest.rs +++ b/src/meta_plugin/digest.rs @@ -80,9 +80,9 @@ impl MetaPlugin for ReadTimeMetaPlugin { fn finalize(&mut self) -> io::Result { if let Some(start_time) = self.start_time { let duration = start_time.elapsed(); - Ok(format!("{:.6}", duration.as_secs_f64())) + Ok(format!("{:.6}s", duration.as_secs_f64())) } else { - Ok("0.000000".to_string()) + Ok("0.000000s".to_string()) } } @@ -125,12 +125,12 @@ impl MetaPlugin for ReadRateMetaPlugin { let duration = start_time.elapsed(); if duration.as_secs_f64() > 0.0 { let rate = self.bytes_read as f64 / duration.as_secs_f64(); - Ok(format!("{:.0}", rate)) + Ok(format!("{:.0} B/s", rate)) } else { - Ok("0".to_string()) + Ok("0 B/s".to_string()) } } else { - Ok("0".to_string()) + Ok("0 B/s".to_string()) } }