mirror of
https://github.com/polybar/polybar.git
synced 2026-03-05 15:59:37 +00:00
fix: Correct type for module interval
This commit is contained in:
@ -14,7 +14,7 @@ namespace modules {
|
||||
github_module::github_module(const bar_settings& bar, string name_)
|
||||
: timer_module<github_module>(bar, move(name_)), m_http(http_util::make_downloader()) {
|
||||
m_accesstoken = m_conf.get(name(), "token");
|
||||
m_interval = m_conf.get(name(), "interval", 60s);
|
||||
m_interval = m_conf.get<decltype(m_interval)>(name(), "interval", 60s);
|
||||
m_empty_notifications = m_conf.get(name(), "empty-notifications", m_empty_notifications);
|
||||
|
||||
m_formatter->add(DEFAULT_FORMAT, TAG_LABEL, {TAG_LABEL});
|
||||
|
||||
Reference in New Issue
Block a user