From f48974093cd5a91475886851ee59d3457335837b Mon Sep 17 00:00:00 2001 From: "jerome.jutteau" Date: Wed, 24 Apr 2024 09:29:47 +0200 Subject: [PATCH] down_detector: limit error rate representation Signed-off-by: jerome.jutteau --- src/down_detectors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/down_detectors.rs b/src/down_detectors.rs index 981fd24..1bf1f69 100644 --- a/src/down_detectors.rs +++ b/src/down_detectors.rs @@ -72,7 +72,7 @@ impl Module for DownDetectors { let mut response = String::new(); for e in &self.watch_list { let s = format!( - "{}: alive={}, error_rate={}\n", + "{}: alive={}, error_rate={:.2}\n", e.name, e.alive, e.error_rate ); response.push_str(s.as_str());