modules: change min poll interval from 500ms to 250ms

This commit is contained in:
Daniel Eklöf 2022-12-23 11:10:37 +01:00
parent 310c07b03d
commit e4edbd26c6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
12 changed files with 12 additions and 11 deletions

View file

@ -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 };

View file

@ -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;

View file

@ -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;

View file

@ -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
{

View file

@ -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;

View file

@ -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;