mirror of
https://github.com/systemd/systemd
synced 2025-09-30 17:24:46 +02:00
Compare commits
No commits in common. "228f5ed3a406b4b4aec55b97c464d1c5e1d6da5b" and "0f15cb224347a97d9c0f6ab782af68139358e1ef" have entirely different histories.
228f5ed3a4
...
0f15cb2243
@ -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. */
|
/* 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_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)");
|
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssssuu)");
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
@ -1993,7 +1993,8 @@ int table_print(Table *t, FILE *f) {
|
|||||||
if (width[j] < minimum_width[j])
|
if (width[j] < minimum_width[j])
|
||||||
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 */
|
/* Subtract what we just added from the rest */
|
||||||
if (extra > delta)
|
if (extra > delta)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user