From dd347fd91663a7d06210df7929954654bbf42c15 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 23 May 2023 14:57:24 -0700 Subject: [PATCH] add units to serialized variables --- web3_proxy/src/rpcs/one.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web3_proxy/src/rpcs/one.rs b/web3_proxy/src/rpcs/one.rs index 89825e29..c74a156e 100644 --- a/web3_proxy/src/rpcs/one.rs +++ b/web3_proxy/src/rpcs/one.rs @@ -1012,14 +1012,14 @@ impl Serialize for Web3Rpc { &self.active_requests.load(atomic::Ordering::Relaxed), )?; - state.serialize_field("head_latency", &self.head_latency.read().value())?; + state.serialize_field("head_latency_ms", &self.head_latency.read().value())?; state.serialize_field( - "peak_latency", + "peak_latency_ms", &self.peak_latency.as_ref().unwrap().latency().as_millis(), )?; - state.serialize_field("peak_ewma", self.peak_ewma().as_ref())?; + state.serialize_field("peak_ewma_s", self.peak_ewma().as_ref())?; state.end() }