mirror of
https://github.com/polybar/polybar.git
synced 2026-03-01 04:35:45 +00:00
fix: Correct type for module interval
This commit is contained in:
@ -15,7 +15,7 @@ namespace modules {
|
||||
template class module<memory_module>;
|
||||
|
||||
memory_module::memory_module(const bar_settings& bar, string name_) : timer_module<memory_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_USED, TAG_BAR_FREE});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user