gping
gping copied to clipboard
Consider adding separation when stats are maximally compressed
There's a rather unfortunate coincidence where "min" is both the name of a stat and a stat unit, so that when the frame is resized small enough, it looks very much like the last value was N minutes vs ms. Seems the best fix would involve some 1-char separator between stats (|, maybe?), but no strong opinion.
I want to add to this -- there are other issues with the numbers on small screens.
- There's a space between the keyword and its value, but no space between the value and the next keyword.
- This violates the visual principle that things that belong together should also be grouped together in terms of spacing.
- You might wonder, Is the
avgnow11.333or3.579?
- As OP already pointed out, the previous problem also leads to units and the following key collapsing.
- Did the last sample take
1.882min(i.e. minutes)? - What does
mmaxmean? - And what is
mjtr?
- Did the last sample take
- Often, the units are missing entirely, and it's hard to tell whether we're talking microseconds, milliseconds, seconds or even minutes.
In my mind:
- there should always be a space between a value and the follow-up key,
- there should always be a unit behind the number,
- there should always be at least, say, 3 digits + decimal place per value; however,
- the space between keyword and the following value is optional, and
- if the screen gets too small to follow these rules, then the end of the line should simply be cut-off.
+1 for both comments here above! I love the level of detail provided by @fxnn , it's like you read my mind 😂