mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 11:35:42 +02:00
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
|
## Unreleased
|
||||||
### Added
|
### Added
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
* disk-io: `interval` renamed to `poll-interval`
|
||||||
|
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
### Removed
|
### Removed
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -35,7 +35,7 @@ currently present in the machine.
|
||||||
:[ *Type*
|
:[ *Type*
|
||||||
:[ *Req*
|
:[ *Req*
|
||||||
:< *Description*
|
:< *Description*
|
||||||
| interval
|
| poll-interval
|
||||||
: int
|
: int
|
||||||
: no
|
: no
|
||||||
: Refresh interval of disk's stats in ms (default=500).
|
: 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:
|
bar:
|
||||||
left:
|
left:
|
||||||
- disk-io:
|
- disk-io:
|
||||||
interval: 1000
|
poll-interval: 1000
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
conditions:
|
conditions:
|
||||||
|
|
|
@ -310,7 +310,7 @@ disk_io_new(uint16_t interval, struct particle *label)
|
||||||
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, "interval");
|
const struct yml_node *interval = yml_get_value(node, "poll-interval");
|
||||||
const struct yml_node *c = yml_get_value(node, "content");
|
const struct yml_node *c = yml_get_value(node, "content");
|
||||||
|
|
||||||
return disk_io_new(
|
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) {
|
if (yml_value_as_int(node) < SMALLEST_INTERVAL) {
|
||||||
LOG_ERR(
|
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);
|
conf_err_prefix(chain, node), SMALLEST_INTERVAL);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -338,7 +338,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[] = {
|
||||||
{"interval", false, &conf_verify_interval},
|
{"poll-interval", false, &conf_verify_interval},
|
||||||
MODULE_COMMON_ATTRS,
|
MODULE_COMMON_ATTRS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue