Changeset

7664:4f145a9f1477

core.statsmanager: Use correct variable for config validation [luacheck]
author Kim Alvefur <zash@zash.se>
date Mon, 12 Sep 2016 16:08:34 +0200
parents 7663:54424e981796
children 7665:2e553f80aedd
files core/statsmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/statsmanager.lua	Mon Sep 12 15:49:24 2016 +0200
+++ b/core/statsmanager.lua	Mon Sep 12 16:08:34 2016 +0200
@@ -6,7 +6,7 @@
 
 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