fix(battery): polling-interval not working (#2677)

Fixes #2649
This commit is contained in:
Patrick Ziegler 2022-04-07 15:24:14 +02:00 committed by GitHub
parent 9b28ba7a5e
commit 7d9227cb08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- `custom/script`: Output clearing when `exec-if` fails ([`#2674`](https://github.com/polybar/polybar/issues/2674))
- `internal/battery`: `poll-interval` not working ([`#2649`](https://github.com/polybar/polybar/issues/2649), [`#2677`](https://github.com/polybar/polybar/pull/2677))
## [3.6.2] - 2022-04-03
### Fixed

View File

@ -199,7 +199,7 @@ namespace modules {
if (chrono::duration_cast<decltype(m_interval)>(now - m_lastpoll) > m_interval) {
m_lastpoll = now;
m_log.info("%s: Polling values (inotify fallback)", name());
read(*m_capacity_reader);
on_event(nullptr);
}
}