mirror of
https://github.com/nicolargo/glances.git
synced 2026-06-05 20:34:26 -04:00
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.
56 KiB
Executable File
56 KiB
Executable File