mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-16 17:56:51 +00:00
btrfs-progs: fi usage: print header and footer separation line
Print the full row width and change to '-' as we're not using '=' anywhere. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
1de2da5ddd
commit
c5cb2432bf
@ -725,14 +725,22 @@ static void _cmd_filesystem_usage_tabular(unsigned unit_mode,
|
||||
|
||||
}
|
||||
|
||||
for (i = 0; i < spaceinfos_col; i++) {
|
||||
table_printf(matrix, i, vhdr_skip - 1, "*-");
|
||||
table_printf(matrix, i, vhdr_skip + device_info_count, "*-");
|
||||
}
|
||||
|
||||
for (i = 0, col = spaceinfos_col; i < sargs->total_spaces; i++) {
|
||||
if (sargs->spaces[i].flags & BTRFS_SPACE_INFO_GLOBAL_RSV)
|
||||
continue;
|
||||
|
||||
table_printf(matrix, col++, vhdr_skip + device_info_count, "*=");
|
||||
table_printf(matrix, col, vhdr_skip - 1, "*-");
|
||||
table_printf(matrix, col, vhdr_skip + device_info_count, "*-");
|
||||
col++;
|
||||
}
|
||||
/* One for Unallocated */
|
||||
table_printf(matrix, col, vhdr_skip + device_info_count, "*=");
|
||||
table_printf(matrix, col, vhdr_skip - 1, "*-");
|
||||
table_printf(matrix, col, vhdr_skip + device_info_count, "*-");
|
||||
|
||||
/* footer */
|
||||
table_printf(matrix, 1, vhdr_skip + device_info_count + 1, "<Total");
|
||||
|
Loading…
Reference in New Issue
Block a user