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

@ -16,7 +16,7 @@ namespace modules {
template class module<cpu_module>;
cpu_module::cpu_module(const bar_settings& bar, string name_) : timer_module<cpu_module>(bar, move(name_)) {
m_interval = m_conf.get(name(), "interval", 1s);
m_interval = m_conf.get<decltype(m_interval)>(name(), "interval", 1s);
m_formatter->add(DEFAULT_FORMAT, TAG_LABEL, {TAG_LABEL, TAG_BAR_LOAD, TAG_RAMP_LOAD, TAG_RAMP_LOAD_PER_CORE});