shared/format-table: print BPS with part after point

Fixes https://github.com/systemd/systemd/issues/33076.
"2Gbps" → "2.5Gbps".
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-05-30 11:38:30 +02:00
parent 11226bf19b
commit 12080b1f7d
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -1712,7 +1712,7 @@ static const char *table_data_format(Table *t, TableData *d, bool avoid_uppercas
if (!p)
return NULL;
if (!format_bytes_full(p, FORMAT_BYTES_MAX, d->size, 0))
if (!format_bytes_full(p, FORMAT_BYTES_MAX, d->size, FORMAT_BYTES_BELOW_POINT))
return table_ersatz_string(t);
n = strlen(p);