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:
Daniel Eklöf 2024-09-05 08:23:47 +02:00
parent c80bae7604
commit 060586dbbe
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 0 additions and 11 deletions

View file

@ -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]).

View file

@ -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
View file

@ -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;