forked from external/yambar
tag: remove the :b formatter
Superseded by /N. Removing since a) it's no longer needed, and b) its name is not consistent with the other kb/mb/gb formatters.
This commit is contained in:
parent
c80bae7604
commit
060586dbbe
3 changed files with 0 additions and 11 deletions
|
@ -20,8 +20,6 @@
|
|||
environment variable.
|
||||
* network: `type` tag ([#380][380]).
|
||||
* network: `type` and `kind` tags ([#380][380]).
|
||||
* tags: `b` tag formatter; divides the tag's decimal value with `8`
|
||||
([#392][392]).
|
||||
* tags: `/<N>` tag formatter: divides the tag's decimal value with `N`
|
||||
([#392][392]).
|
||||
|
||||
|
|
|
@ -90,11 +90,6 @@ be used.
|
|||
: format
|
||||
: All tag types
|
||||
: Renders a tag's value (in decimal) divided by N
|
||||
| b
|
||||
: format
|
||||
: All tag types
|
||||
: Renders a tag's value (in decimal) divided by 8. Note: no unit
|
||||
suffix is appended
|
||||
| kb, mb, gb
|
||||
: format
|
||||
: All tag types
|
||||
|
|
4
tag.c
4
tag.c
|
@ -545,10 +545,6 @@ tags_expand_template(const char *template, const struct tag_set *tags)
|
|||
LOG_WARN("tag `%s`: invalid divider %s, reset to 1", tag_name, divider_str);
|
||||
}
|
||||
}
|
||||
else if (strcmp(tag_args[i], "b") == 0) {
|
||||
format = FMT_DIVIDE;
|
||||
divider = 8;
|
||||
}
|
||||
else if (strcmp(tag_args[i], "kb") == 0) {
|
||||
format = FMT_DIVIDE;
|
||||
divider = 1000;
|
||||
|
|
Loading…
Add table
Reference in a new issue