fix: Correct type for module interval

This commit is contained in:
Michael Carlberg
2016-12-31 03:04:01 +01:00
parent a989d401d9
commit 14958bdd23
9 changed files with 9 additions and 9 deletions

View File

@ -13,7 +13,7 @@ namespace modules {
m_tail = m_conf.get(name(), "tail", m_tail);
m_maxlen = m_conf.get(name(), "maxlen", m_maxlen);
m_ellipsis = m_conf.get(name(), "ellipsis", m_ellipsis);
m_interval = m_conf.get(name(), "interval", m_tail ? 0s : 5s);
m_interval = m_conf.get<decltype(m_interval)>(name(), "interval", m_tail ? 0s : 5s);
m_conf.warn_deprecated(
name(), "maxlen", "\"format = <label>\" and \"label = %output:0:" + to_string(m_maxlen) + "%\"");