From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 23 May 2022 12:38:39 +0000 (+0100) Subject: Put visual divider pipe characters between the column headings in statistics. X-Git-Tag: 4.1-rc1~24^2~183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4cadfc1e763d1c4e4cf6b77175ae0ea6ce99b98;p=thirdparty%2Fshairport-sync.git Put visual divider pipe characters between the column headings in statistics. --- diff --git a/player.c b/player.c index c7603946..9144030f 100644 --- a/player.c +++ b/player.c @@ -1586,8 +1586,12 @@ int ap2_buffered_nodelay_stream_statistics_print_profile[] = {0, 0, 0, 0, 0, 0, void statistics_item(const char *heading, const char *format, ...) { if (((statistics_print_profile[statistics_column] == 1) && (debuglev != 0)) || (statistics_print_profile[statistics_column] == 2)) { // include this column? - if (was_a_previous_column != 0) - strcat(line_of_stats, " "); + if (was_a_previous_column != 0) { + if (statistics_row == 0) + strcat(line_of_stats, " | "); + else + strcat(line_of_stats, " "); + } if (statistics_row == 0) { strcat(line_of_stats, heading); } else {