aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-30 14:55:39 +0200
committerKim Alvefur <zash@zash.se>2018-09-30 14:55:39 +0200
commit55998f91c25b2cb27131587ab3396e43ad193fad (patch)
treebb2708a3cd5c7756426f97e90bdc444d32c1e370 /plugins
parent03b285fc261314057ef6cfec7efbf97aa70a9275 (diff)
downloadprosody-55998f91c25b2cb27131587ab3396e43ad193fad.tar.gz
prosody-55998f91c25b2cb27131587ab3396e43ad193fad.zip
mod_admin_telnet: Guard against missing table field
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_telnet.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 85fb0d6c..828e85f4 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -1328,7 +1328,7 @@ function stats_methods:cfgraph()
table.insert(stat_info.output, s);
end
- if data and data.sample_count > 0 then
+ if data and data.sample_count and data.sample_count > 0 then
local raw_histogram = require "util.statistics".get_histogram(data);
local graph_width, graph_height = 50, 10;