config: Print deprecation warnings

This commit is contained in:
Michael Carlberg
2016-11-22 03:01:50 +01:00
parent 733341d62b
commit 09e0ea1932
5 changed files with 19 additions and 2 deletions

View File

@ -20,6 +20,8 @@ namespace modules {
GET_CONFIG_VALUE(name(), m_udspeed_minwidth, "udspeed-minwidth");
GET_CONFIG_VALUE(name(), m_accumulate, "accumulate-stats");
m_conf.warn_deprecated(name(), "udspeed-minwidth", "%downspeed:min:max% and %upspeed:min:max%");
m_interval = chrono::duration<double>(m_conf.get<float>(name(), "interval", 1));
// Add formats