Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit c707b3d

Browse files
committed
Display the total number of transactions for each node once complete
1 parent f7d294d commit c707b3d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/bin/bench-tps.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,19 +372,20 @@ fn main() {
372372
let mut total_txs = 0;
373373
let mut nodes_with_zero_tps = 0;
374374
let mut total_maxes = 0.0;
375-
println!(" Node address | Max TPS");
376-
println!("---------------------+---------");
375+
println!(" Node address | Max TPS | Total Transactions");
376+
println!("---------------------+---------------+--------------------");
377377

378378
for (sock, stats) in maxes.read().unwrap().iter() {
379-
let mut maybe_flag = match stats.tx {
379+
let maybe_flag = match stats.tx {
380380
0 => "!!!!!",
381381
_ => "",
382382
};
383383

384384
println!(
385-
"{:20} | {:.2} {}",
385+
"{:20} | {:13.2} | {} {}",
386386
(*sock).to_string(),
387387
stats.tps,
388+
stats.tx,
388389
maybe_flag
389390
);
390391

0 commit comments

Comments
 (0)