summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMK13 <marius@kleberonline.de>2019-10-26 15:32:32 +0200
committerMK13 <marius@kleberonline.de>2019-10-26 15:32:32 +0200
commit572c96d63ed41bfc83d7378454f3ae4505ad9601 (patch)
tree7398d356bd2295e1e0dd1a8156266a1750db8bc4 /configure.ac
parent3d6b1b576b3c1acd6d2932da454171cfd8e22821 (diff)
Introduce memory options 'unit' and 'decimals'
Previously the format placeholders were auto-converted to the maximum possible unit, e.g. /proc/meminfo reports MemTotal of 16307104kB which will get converted to 15.6GiB. It is now possible to specifiy the target unit, e.g. Mi, which will be used for the conversion - in the example it would lead to 15924.9MiB. The resulting number can now be further formatted via the decimal option. It allows to specify the number of decimals to use, e.g. 15.6GiB vs. 15GiB or 15924.9MiB vs. 15925MiB.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions