forked from external/yambar
modules: change min poll interval from 500ms to 250ms
This commit is contained in:
parent
310c07b03d
commit
e4edbd26c6
12 changed files with 12 additions and 11 deletions
|
@ -18,6 +18,7 @@
|
|||
* mem: `interval` renamed to `poll-interval`
|
||||
* battery/network/script: `poll-interval` unit changed from seconds to
|
||||
milliseconds ([#244][244]).
|
||||
* all modules: minimum poll interval changed from 500ms to 250ms.
|
||||
|
||||
[244]: https://codeberg.org/dnkl/yambar/issues/244
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ the state *unknown* under other conditions.
|
|||
: 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.
|
||||
than 250ms.
|
||||
|
||||
# EXAMPLES
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ total CPU usage.
|
|||
: int
|
||||
: no
|
||||
: Refresh interval of the CPU usage stats in milliseconds
|
||||
(default=500). Cannot be less then 500ms.
|
||||
(default=500). Cannot be less then 250ms.
|
||||
|
||||
# EXAMPLES
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ currently present in the machine.
|
|||
: int
|
||||
: no
|
||||
: Refresh interval of disk's stats in milliseconds (default=500).
|
||||
Cannot be less then 500ms.
|
||||
Cannot be less then 250ms.
|
||||
|
||||
# EXAMPLES
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ mem - This module provides the memory usage
|
|||
: string
|
||||
: no
|
||||
: Refresh interval of the memory usage stats in milliseconds
|
||||
(default=500). Cannot be less then 500ms.
|
||||
(default=500). Cannot be less then 250ms.
|
||||
|
||||
# EXAMPLES
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ address.
|
|||
: no
|
||||
: Periodically (in milliseconds) update the signal, rx+tx bitrate, and
|
||||
ul+dl speed tags. Setting it to 0 disables updates. Cannot be less
|
||||
than 500ms.
|
||||
than 250ms.
|
||||
|
||||
|
||||
# EXAMPLES
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "../config-verify.h"
|
||||
#include "../plugin.h"
|
||||
|
||||
static const long min_poll_interval = 500;
|
||||
static const long min_poll_interval = 250;
|
||||
static const long default_poll_interval = 60 * 1000;
|
||||
|
||||
enum state { STATE_FULL, STATE_NOTCHARGING, STATE_CHARGING, STATE_DISCHARGING, STATE_UNKNOWN };
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "../particles/dynlist.h"
|
||||
#include "../plugin.h"
|
||||
|
||||
static const long min_poll_interval = 500;
|
||||
static const long min_poll_interval = 250;
|
||||
|
||||
struct cpu_stats {
|
||||
uint32_t *prev_cores_idle;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include "../particles/dynlist.h"
|
||||
#include "../plugin.h"
|
||||
|
||||
static const long min_poll_interval = 500;
|
||||
static const long min_poll_interval = 250;
|
||||
|
||||
struct device_stats {
|
||||
char *name;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "../log.h"
|
||||
#include "../plugin.h"
|
||||
|
||||
static const long min_poll_interval = 500;
|
||||
static const long min_poll_interval = 250;
|
||||
|
||||
struct private
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
#define UNUSED __attribute__((unused))
|
||||
|
||||
static const long min_poll_interval = 500;
|
||||
static const long min_poll_interval = 250;
|
||||
|
||||
struct rt_stats_msg {
|
||||
struct rtmsg rth;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "../module.h"
|
||||
#include "../plugin.h"
|
||||
|
||||
static const long min_poll_interval = 500;
|
||||
static const long min_poll_interval = 250;
|
||||
|
||||
struct private {
|
||||
char *path;
|
||||
|
|
Loading…
Add table
Reference in a new issue