Display the total number of transactions for each node once complete
This commit is contained in:
parent
f7d294de90
commit
c707b3d2e7
|
@ -372,19 +372,20 @@ fn main() {
|
||||||
let mut total_txs = 0;
|
let mut total_txs = 0;
|
||||||
let mut nodes_with_zero_tps = 0;
|
let mut nodes_with_zero_tps = 0;
|
||||||
let mut total_maxes = 0.0;
|
let mut total_maxes = 0.0;
|
||||||
println!(" Node address | Max TPS");
|
println!(" Node address | Max TPS | Total Transactions");
|
||||||
println!("---------------------+---------");
|
println!("---------------------+---------------+--------------------");
|
||||||
|
|
||||||
for (sock, stats) in maxes.read().unwrap().iter() {
|
for (sock, stats) in maxes.read().unwrap().iter() {
|
||||||
let mut maybe_flag = match stats.tx {
|
let maybe_flag = match stats.tx {
|
||||||
0 => "!!!!!",
|
0 => "!!!!!",
|
||||||
_ => "",
|
_ => "",
|
||||||
};
|
};
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
"{:20} | {:.2} {}",
|
"{:20} | {:13.2} | {} {}",
|
||||||
(*sock).to_string(),
|
(*sock).to_string(),
|
||||||
stats.tps,
|
stats.tps,
|
||||||
|
stats.tx,
|
||||||
maybe_flag
|
maybe_flag
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue