tag: add kb/mb/gb formatters

This commit is contained in:
Daniel Eklöf 2021-08-27 21:15:19 +02:00
parent e201cc3d30
commit a6194c63e6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 58 additions and 3 deletions

View file

@ -72,6 +72,19 @@ be used.
: format
: Renders a range tag's value as a percentage value
: Range tags
| kb
: format
: Renders a tag's value (in decimal) divided by 1024 (note that no
unit suffix is appended)
| mb
: format
: Renders a tag's value (in decimal) divided by 1024^2 (note that no
unit suffix is appended)
| gb
: format
: Renders a tag's value (in decimal) divided by 1024^3 (note that no
unit suffix is appended)
: All tag types
| min
: selector
: Renders a range tag's mininum value