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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user