mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-17 00:35:38 +02:00
cpu module: rename poll-interval -> interval
This makes it consistent with the man-page and the mem module.
This commit is contained in:
parent
710cede371
commit
5fb39d6b40
1 changed files with 2 additions and 2 deletions
|
@ -272,7 +272,7 @@ cpu_new(uint16_t interval, struct particle *template)
|
||||||
static struct module *
|
static struct module *
|
||||||
from_conf(const struct yml_node *node, struct conf_inherit inherited)
|
from_conf(const struct yml_node *node, struct conf_inherit inherited)
|
||||||
{
|
{
|
||||||
const struct yml_node *interval = yml_get_value(node, "poll-interval");
|
const struct yml_node *interval = yml_get_value(node, "interval");
|
||||||
const struct yml_node *c = yml_get_value(node, "content");
|
const struct yml_node *c = yml_get_value(node, "content");
|
||||||
|
|
||||||
return cpu_new(
|
return cpu_new(
|
||||||
|
@ -299,7 +299,7 @@ static bool
|
||||||
verify_conf(keychain_t *chain, const struct yml_node *node)
|
verify_conf(keychain_t *chain, const struct yml_node *node)
|
||||||
{
|
{
|
||||||
static const struct attr_info attrs[] = {
|
static const struct attr_info attrs[] = {
|
||||||
{"poll-interval", false, &conf_verify_interval},
|
{"interval", false, &conf_verify_interval},
|
||||||
MODULE_COMMON_ATTRS,
|
MODULE_COMMON_ATTRS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue