From b1871e8b07d8d90f6397d17e11eb8b3d7cb778e4 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 30 Sep 2018 14:55:39 +0200 Subject: mod_admin_telnet: Guard against missing table field --- plugins/mod_admin_telnet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_admin_telnet.lua') 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; -- cgit v1.2.3