Skip to content

Commit

Permalink
down_detector: limit error rate representation
Browse files Browse the repository at this point in the history
Signed-off-by: jerome.jutteau <[email protected]>
  • Loading branch information
jerome-jutteau committed Apr 24, 2024
1 parent 208aa00 commit f489740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/down_detectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f489740

Please sign in to comment.