From 957ba161b5852ee997cf427d9e1bed8bfb72725c Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 13 Jun 2023 12:08:47 -0700 Subject: [PATCH] move table data around --- web3_proxy/src/bin/web3_proxy_cli/popularity_contest.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web3_proxy/src/bin/web3_proxy_cli/popularity_contest.rs b/web3_proxy/src/bin/web3_proxy_cli/popularity_contest.rs index dc562c51..fecc2523 100644 --- a/web3_proxy/src/bin/web3_proxy_cli/popularity_contest.rs +++ b/web3_proxy/src/bin/web3_proxy_cli/popularity_contest.rs @@ -142,11 +142,11 @@ impl PopularityContestSubCommand { "internal", "active", "lag", + "block_data_limit", "head_ms", "peak_ms", "weighted_ms", "tier", - "block_data_limit", ]); for rpc in rpc_data.into_iter() { @@ -172,16 +172,16 @@ impl PopularityContestSubCommand { table.add_row(row![ rpc.name, - external_request_pct, + format!("{:.3}", external_request_pct), rpc.external_requests, rpc.internal_requests, rpc.active_requests, lag, + block_data_limit, format!("{:.3}", rpc.head_latency_ms), - format!("{:.3}", rpc.peak_latency_ms), + rpc.peak_latency_ms, format!("{:.3}", rpc.weighted_latency_ms), tier, - block_data_limit, ]); }