From fc5c435949dc38e02eac5b0a3bb2a9b7370ba7b6 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 10 Jan 2022 10:36:33 -0700 Subject: [PATCH] stats: fix .size counters showing up as time counters --- wezterm-gui/src/stats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-gui/src/stats.rs b/wezterm-gui/src/stats.rs index 41d46765e..f6ab3d996 100644 --- a/wezterm-gui/src/stats.rs +++ b/wezterm-gui/src/stats.rs @@ -127,7 +127,7 @@ impl Inner { data.clear(); for (key, histogram) in &inner.histograms { - if key.to_string().ends_with(".size") { + if key.name().ends_with(".size") { let p50 = histogram.value_at_percentile(50.); let p75 = histogram.value_at_percentile(75.); let p95 = histogram.value_at_percentile(95.);