Files
glances/tests
Yan b42defb1d8 Keep auto_unit within limits, so columns stay aligned
Occasionally, columns got misaligned, because auto_unit returned too
many decimals when the number was slightly below 10 or 100.
Actually, when (9.995 <= n < 10) and (99.95 < n < 100).

For example,
10*2**20-1 returned 10.00M instead of 10.0M and
100*2**20-1 returned 100.0M instead of 100M.

Tests added to verify correctness.
2026-05-16 21:45:09 +00:00
..
2026-03-24 08:18:04 +00:00
2026-02-21 21:18:27 +01:00
2026-03-24 08:18:04 +00:00
2025-12-26 18:47:01 +01:00
2025-12-26 18:47:01 +01:00
2026-05-07 12:59:37 +00:00
2026-02-26 21:55:37 +01:00
2026-03-24 08:18:04 +00:00
2026-03-24 08:18:04 +00:00
2026-03-24 08:18:04 +00:00