aboutsummaryrefslogtreecommitdiffstats
path: root/core/statsmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-09-12 16:08:34 +0200
committerKim Alvefur <zash@zash.se>2016-09-12 16:08:34 +0200
commit503a9c65cd8e53dfd721e2fcc9797649299b1e75 (patch)
tree151927d52c551ab8e798aec8babca9f907d8140a /core/statsmanager.lua
parentb421c1992ef67364a3abc0469a5b90ba26110c61 (diff)
downloadprosody-503a9c65cd8e53dfd721e2fcc9797649299b1e75.tar.gz
prosody-503a9c65cd8e53dfd721e2fcc9797649299b1e75.zip
core.statsmanager: Use correct variable for config validation [luacheck]
Diffstat (limited to 'core/statsmanager.lua')
-rw-r--r--core/statsmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/statsmanager.lua b/core/statsmanager.lua
index 67702dd9..237b1dd5 100644
--- a/core/statsmanager.lua
+++ b/core/statsmanager.lua
@@ -6,7 +6,7 @@ local fire_event = prosody.events.fire_event;
local stats_interval_config = config.get("*", "statistics_interval");
local stats_interval = tonumber(stats_interval_config);
-if stats_config and not stats_interval then
+if stats_interval_config and not stats_interval then
log("error", "Invalid 'statistics_interval' setting, statistics will be disabled");
end