From 10845995a8ef7e77cc05fec1675fa2e918525608 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Mon, 22 Jan 2018 07:51:25 -0800 Subject: [PATCH] Make room for 4-digit pass timings. (sigh) --- lib/cretonne/src/timing.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cretonne/src/timing.rs b/lib/cretonne/src/timing.rs index e1855cf65a..42bbea884b 100644 --- a/lib/cretonne/src/timing.rs +++ b/lib/cretonne/src/timing.rs @@ -133,9 +133,9 @@ mod details { impl fmt::Display for PassTimes { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - writeln!(f, "======= ======= ==================================")?; - writeln!(f, " Total Self Pass")?; - writeln!(f, "------- ------- ----------------------------------")?; + writeln!(f, "======== ======== ==================================")?; + writeln!(f, " Total Self Pass")?; + writeln!(f, "-------- -------- ----------------------------------")?; for (time, desc) in self.pass.iter().zip(&DESCRIPTIONS) { // Omit passes that haven't run. if time.total == Duration::default() { @@ -147,7 +147,7 @@ mod details { // Round to nearest ms by adding 500us. dur += Duration::new(0, 500_000); let ms = dur.subsec_nanos() / 1_000_000; - write!(f, "{:3}.{:03} ", dur.as_secs(), ms) + write!(f, "{:4}.{:03} ", dur.as_secs(), ms) } fmtdur(time.total, f)?; @@ -156,7 +156,7 @@ mod details { } writeln!(f, " {}", desc)?; } - writeln!(f, "======= ======= ==================================") + writeln!(f, "======== ======== ==================================") } }