From 5fb39d6b4019b07e52c7f11e88bc03867a8fb7f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Gibrowski=20Fa=C3=A9?= Date: Sat, 17 Dec 2022 15:33:26 -0300 Subject: [PATCH] cpu module: rename poll-interval -> interval This makes it consistent with the man-page and the mem module. --- modules/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cpu.c b/modules/cpu.c index b63e926..7886da5 100644 --- a/modules/cpu.c +++ b/modules/cpu.c @@ -272,7 +272,7 @@ cpu_new(uint16_t interval, struct particle *template) static struct module * 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"); return cpu_new( @@ -299,7 +299,7 @@ static bool verify_conf(keychain_t *chain, const struct yml_node *node) { static const struct attr_info attrs[] = { - {"poll-interval", false, &conf_verify_interval}, + {"interval", false, &conf_verify_interval}, MODULE_COMMON_ATTRS, };