forked from external/yambar
module/disk-io: rename ‘interval’ to ‘poll-interval’
This commit is contained in:
parent
252a7a1580
commit
63c9c90a61
3 changed files with 9 additions and 5 deletions
|
@ -13,6 +13,10 @@
|
|||
## Unreleased
|
||||
### Added
|
||||
### Changed
|
||||
|
||||
* disk-io: `interval` renamed to `poll-interval`
|
||||
|
||||
|
||||
### Deprecated
|
||||
### Removed
|
||||
### Fixed
|
||||
|
|
|
@ -35,7 +35,7 @@ currently present in the machine.
|
|||
:[ *Type*
|
||||
:[ *Req*
|
||||
:< *Description*
|
||||
| interval
|
||||
| poll-interval
|
||||
: int
|
||||
: no
|
||||
: Refresh interval of disk's stats in ms (default=500).
|
||||
|
@ -50,7 +50,7 @@ formatting in b/s, kb/s, mb/s, or gb/s, as appropriate.
|
|||
bar:
|
||||
left:
|
||||
- disk-io:
|
||||
interval: 1000
|
||||
poll-interval: 1000
|
||||
content:
|
||||
map:
|
||||
conditions:
|
||||
|
|
|
@ -310,7 +310,7 @@ disk_io_new(uint16_t interval, struct particle *label)
|
|||
static struct module *
|
||||
from_conf(const struct yml_node *node, struct conf_inherit inherited)
|
||||
{
|
||||
const struct yml_node *interval = yml_get_value(node, "interval");
|
||||
const struct yml_node *interval = yml_get_value(node, "poll-interval");
|
||||
const struct yml_node *c = yml_get_value(node, "content");
|
||||
|
||||
return disk_io_new(
|
||||
|
@ -326,7 +326,7 @@ conf_verify_interval(keychain_t *chain, const struct yml_node *node)
|
|||
|
||||
if (yml_value_as_int(node) < SMALLEST_INTERVAL) {
|
||||
LOG_ERR(
|
||||
"%s: interval value cannot be less than %d ms",
|
||||
"%s: poll-interval value cannot be less than %d ms",
|
||||
conf_err_prefix(chain, node), SMALLEST_INTERVAL);
|
||||
return false;
|
||||
}
|
||||
|
@ -338,7 +338,7 @@ static bool
|
|||
verify_conf(keychain_t *chain, const struct yml_node *node)
|
||||
{
|
||||
static const struct attr_info attrs[] = {
|
||||
{"interval", false, &conf_verify_interval},
|
||||
{"poll-interval", false, &conf_verify_interval},
|
||||
MODULE_COMMON_ATTRS,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue