diff --git a/src/librustc/util/profiling.rs b/src/librustc/util/profiling.rs index 5bb1ddd669b..ef4e2332604 100644 --- a/src/librustc/util/profiling.rs +++ b/src/librustc/util/profiling.rs @@ -92,7 +92,7 @@ macro_rules! p { ($name:tt, $rustic_name:ident) => { let (hits, total) = self.query_counts.$rustic_name; let (hits, total) = if total > 0 { - (format!("{:.2}%", (((hits as f32) / (total as f32)) * 100.0)), total.to_string()) + (format!("{:.2}", (((hits as f32) / (total as f32)) * 100.0)), total.to_string()) } else { ("".into(), "".into()) };