Software /
code /
prosody
Diff
core/statsmanager.lua @ 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 |
parent | 7533:4ef37ac69562 |
child | 9804:7929e0fe0577 |
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