Closed
Description
The net block has a few problems:
- Takes too much space
- Varies in width (particularly with prettier proportional fonts like
Noto Sans Regular
)
The point of a status bar is to get a quick, rough estimate of usage. This means 2-3 digits of precision, e.g.
4.20G
0.42G
42.0M
4.20M
0.42M
42.0K
4.20K
0.42K
4.20B
0.42B
0.04B
0.00B
The aforementioned representations do not (significantly) vary in width with proportional fonts.
I propose a format specification:
[[block]]
name = "net"
format = "{M.3}"
where:
M
represents the limiting precision. (Anything below0.01M
is labeled0.00M
.).3
represents 3 digits of precision.
That is:
4.20G <- Not really necessary...
0.42G <- Not really necessary...
42.0M
4.20M
0.42M
0.04M
0.00M