mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
parent
b899dd7325
commit
aacaac117c
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ void BatteryModule::subthread_routine()
|
|||
if (poll_seconds > 0 && (++i % poll_seconds) == 0) {
|
||||
// Trigger an inotify event in case the underlying filesystem doesn't
|
||||
log_debug("Poll battery capacity");
|
||||
io::file::get_contents("/sys/class/power_supply/BAT0/capacity");
|
||||
io::file::get_contents(this->path_capacity);
|
||||
i = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue