1
0
mirror of https://github.com/systemd/systemd synced 2025-09-30 09:14:46 +02:00

Compare commits

..

No commits in common. "228f5ed3a406b4b4aec55b97c464d1c5e1d6da5b" and "0f15cb224347a97d9c0f6ab782af68139358e1ef" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,6 @@ static int print_inhibitors(sd_bus *bus) {
/* If there's not enough space, shorten the "WHY" column, as it's little more than an explaining comment. */
(void) table_set_weight(table, TABLE_HEADER_CELL(6), 20);
(void) table_set_maximum_width(table, TABLE_HEADER_CELL(0), columns()/2);
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssssuu)");
if (r < 0)

View File

@ -1993,7 +1993,8 @@ int table_print(Table *t, FILE *f) {
if (width[j] < minimum_width[j])
width[j] = minimum_width[j];
delta = LESS_BY(width[j], requested_width[j]);
assert(width[j] >= requested_width[j]);
delta = width[j] - requested_width[j];
/* Subtract what we just added from the rest */
if (extra > delta)