From 46ad556ca0fc5b3faf41d1d94d1f3aab60cc728f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 29 Jan 2022 15:01:38 +0100 Subject: mod_admin_shell: Fix traceback on rendering graph of stats without extra labels Stops an error when extra_labels is nil since it attempts to index it Unsure about correctness --- plugins/mod_admin_shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 2ca38be1..c2887940 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -1653,7 +1653,7 @@ function stats_methods:render_single_fancy_histogram_ex(print, prefix, metric_fa sum = value elseif suffix == "_count" then count = value - else + elseif extra_labels then local bucket_threshold = extra_labels["le"] local bucket_count if cumulative then -- cgit v1.2.3