Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ aws-lc-rs = { version = "1.0.0", features = ["bindgen"] }
assert_cmd = "2.0.2"
axum = { version = "0.7", features = ["http2"] }
bytes = "1.0"
float-cmp = "0.9.0"
lazy_static = "1.4.0"
predicates = "3.1.0"
regex = "1.9.6"
Expand Down
11 changes: 6 additions & 5 deletions src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl Monitor {

let mut bar_num_req = vec![0u64; count];
let short_bin = (now - self.start).as_secs_f64() % bin;
for r in all.success.iter().rev() {
for r in all.success().iter().rev() {
let past = (now - r.end).as_secs_f64();
let i = if past <= short_bin {
0
Expand Down Expand Up @@ -185,7 +185,7 @@ impl Monitor {
[
Constraint::Length(3),
Constraint::Length(8),
Constraint::Length(all.error.len() as u16 + 2),
Constraint::Length(all.error_distribution().len() as u16 + 2),
Constraint::Fill(1),
]
.as_ref(),
Expand Down Expand Up @@ -220,7 +220,7 @@ impl Monitor {
f.render_widget(gauge, row4[0]);

let last_1_timescale = all
.success
.success()
.iter()
.rev()
.take_while(|r| (now - r.end).as_secs_f64() <= timescale.as_secs_f64())
Expand Down Expand Up @@ -312,7 +312,8 @@ impl Monitor {
);
f.render_widget(stats2, mid[1]);

let mut error_v: Vec<(String, usize)> = all.error.clone().into_iter().collect();
let mut error_v: Vec<(String, usize)> =
all.error_distribution().clone().into_iter().collect();
error_v.sort_by_key(|t| std::cmp::Reverse(t.1));
let errors_text = error_v
.into_iter()
Expand Down Expand Up @@ -366,7 +367,7 @@ impl Monitor {
}
.max(2);
let values = all
.success
.success()
.iter()
.rev()
.take_while(|r| (now - r.end).as_secs_f64() < timescale.as_secs_f64())
Expand Down
Loading