diff options
author | Kim Alvefur <zash@zash.se> | 2022-01-29 15:01:38 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-01-29 15:01:38 +0100 |
commit | 46ad556ca0fc5b3faf41d1d94d1f3aab60cc728f (patch) | |
tree | 4d15567f1e2f68f46c822016e1822c52cfd29a9f /plugins/mod_admin_shell.lua | |
parent | d9f7b2632865b433e3a3cecb21f2c6c9191080b3 (diff) | |
download | prosody-46ad556ca0fc5b3faf41d1d94d1f3aab60cc728f.tar.gz prosody-46ad556ca0fc5b3faf41d1d94d1f3aab60cc728f.zip |
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
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r-- | plugins/mod_admin_shell.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |