module/battery: poll-interval: convert value from ‘seconds’ to ‘milliseconds’

This commit is contained in:
Daniel Eklöf 2022-12-22 11:47:50 +01:00
parent ac8e45c331
commit 8fbbce10a5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 32 additions and 9 deletions

View file

@ -57,7 +57,10 @@ the state *unknown* under other conditions.
| poll-interval
: int
: no
: How often, in seconds, to poll for capacity changes (default=*60*). Set to `0` to disable polling (*warning*: many batteries do not support asynchronous reporting).
: How often, in milliseconds, to poll for capacity changes
(default=*60000*). Set to `0` to disable polling (*warning*: many
batteries do not support asynchronous reporting). Cannot be less
than 500ms.
# EXAMPLES
@ -66,7 +69,7 @@ bar:
left:
- battery:
name: BAT0
poll-interval: 30
poll-interval: 30000
content:
string: {text: "BAT: {capacity}% {estimate}"}
```