From ae1a7e7ebf9a24b9377b3f8b6aad269ab65652c1 Mon Sep 17 00:00:00 2001 From: Isaac Torres Date: Mon, 11 Oct 2021 10:10:16 -0600 Subject: [PATCH] Format Corr Age in Status Bar [CPP-289] The corr age property in the status bar has been updated to always show 1 decimal point of precision so that the INS status does not jump around when it is a whole number. --- console_backend/src/status_bar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console_backend/src/status_bar.rs b/console_backend/src/status_bar.rs index 59d67a6d1..e365068d1 100644 --- a/console_backend/src/status_bar.rs +++ b/console_backend/src/status_bar.rs @@ -461,7 +461,7 @@ impl HeartbeatInner { if let Some(last_age_corr_time) = self.last_age_corr_receipt_time { if (self.current_time - last_age_corr_time).as_secs_f64() < UPDATE_TOLERANCE_SECONDS { - self.age_of_corrections = format!("{} s", age_corr); + self.age_of_corrections = format!("{:.1} s", age_corr); } } }